From b0ca65a61339ea55941e0928fb7d612cacffe526 Mon Sep 17 00:00:00 2001 From: Luke Wilson Date: Mon, 12 Apr 2021 17:48:00 -0500 Subject: [PATCH] Fix not applying cursor operation --- ui/textedit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/textedit.go b/ui/textedit.go index 75a2584..91dff25 100755 --- a/ui/textedit.go +++ b/ui/textedit.go @@ -171,7 +171,7 @@ func (t *TextEdit) Delete(forwards bool) { } else { // Delete the character before the cursor // If the cursor is not at the first column of the first line... if cursLine > 0 || cursCol > 0 { - t.cursor.Left() // Back up to that character + t.cursor = t.cursor.Left() // Back up to that character bytes := t.Buffer.Slice(cursLine, cursCol, cursLine, cursCol) // Get the char at cursor deletedLine = bytes[0] == '\n'