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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user