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 *)
clearMode app
else if cursorIsStart then
let val _ = print "260\n" in
clearMode app end
clearMode app
else if nextIsEnd then
let
(* delete char at cursor and then decrement cursorIdx by 1
@@ -280,8 +279,6 @@ struct
in
(newApp, drawMsg)
end
else if Cursor.isPrevChrStartOfLine (buffer, cursorIdx) then
clearMode app
else
let
val newBuffer = LineGap.delete (cursorIdx, 1, buffer)

BIN
shf

Binary file not shown.