From 22330664098826620ab783f2d6f68e3639660f9e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 23 Jun 2022 12:06:44 -0700 Subject: bugfix: clear selection in a couple more places --- text.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/text.lua b/text.lua index f37faae..24c92aa 100644 --- a/text.lua +++ b/text.lua @@ -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} -- cgit 1.4.1-2-gfad0