From cac950afd6931d09f73199acd0791ae1cf1d0ab6 Mon Sep 17 00:00:00 2001 From: "Luke I. Wilson" Date: Thu, 18 Mar 2021 16:47:20 -0500 Subject: [PATCH] Cursor selection movement fix in TextEdit --- ui/textedit.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/textedit.go b/ui/textedit.go index 20eb496..2968076 100644 --- a/ui/textedit.go +++ b/ui/textedit.go @@ -572,6 +572,7 @@ func (t *TextEdit) HandleEvent(event tcell.Event) bool { case tcell.KeyLeft: if ev.Modifiers() == tcell.ModShift { if !t.selectMode { + t.CursorLeft() // We want the character to the left to be selected only (think insert) t.selection.StartLine, t.selection.StartCol = t.cury, t.curx t.selection.EndLine, t.selection.EndCol = t.cury, t.curx t.selectMode = true