bugfix: clear selection in a couple more places

This commit is contained in:
Kartik K. Agaram 2022-06-23 12:06:44 -07:00
parent 84875f3c43
commit 2233066409
1 changed files with 2 additions and 0 deletions

View File

@ -296,8 +296,10 @@ function Text.keychord_pressed(chord)
Text.word_right()
elseif chord == 'home' then
Cursor1.pos = 1
Selection1 = {}
elseif chord == 'end' then
Cursor1.pos = utf8.len(Lines[Cursor1.line].data) + 1
Selection1 = {}
elseif chord == 'S-home' then
if Selection1.line == nil then
Selection1 = {line=Cursor1.line, pos=Cursor1.pos}