add minimal modifications to implementation of 'dge' motion, so that failing test for 'dge' motion passes

This commit is contained in:
2025-10-13 22:08:33 +01:00
parent 8e56eb7628
commit be7a9b3035

View File

@@ -373,6 +373,9 @@ struct
end end
fun deleteToEndOfPrevWord (app: app_type, count, time) = fun deleteToEndOfPrevWord (app: app_type, count, time) =
if #cursorIdx app = 0 then
NormalFinish.clearMode app
else
let let
val {buffer, cursorIdx, ...} = app val {buffer, cursorIdx, ...} = app
@@ -385,6 +388,9 @@ struct
end end
fun deleteToEndOfPrevWORD (app: app_type, count, time) = fun deleteToEndOfPrevWORD (app: app_type, count, time) =
if #cursorIdx app = 0 then
NormalFinish.clearMode app
else
let let
val {buffer, cursorIdx, ...} = app val {buffer, cursorIdx, ...} = app