delete-chr (equivalent of vi's 'x' cmd) works fine now, except when deleting from the very first line, where first line may become invisible temporarily. I am not sure why that is happening but will find out.

This commit is contained in:
2024-11-06 12:17:26 +00:00
parent 2e13030efb
commit 50d10c1a89
2 changed files with 1 additions and 4 deletions

View File

@@ -257,8 +257,7 @@ struct
* when cursor is at start of line, and next chr is line break *) * when cursor is at start of line, and next chr is line break *)
clearMode app clearMode app
else if cursorIsStart then else if cursorIsStart then
let val _ = print "260\n" in clearMode app
clearMode app end
else if nextIsEnd then else if nextIsEnd then
let let
(* delete char at cursor and then decrement cursorIdx by 1 (* delete char at cursor and then decrement cursorIdx by 1
@@ -280,8 +279,6 @@ struct
in in
(newApp, drawMsg) (newApp, drawMsg)
end end
else if Cursor.isPrevChrStartOfLine (buffer, cursorIdx) then
clearMode app
else else
let let
val newBuffer = LineGap.delete (cursorIdx, 1, buffer) val newBuffer = LineGap.delete (cursorIdx, 1, buffer)

BIN
shf

Binary file not shown.