refactor to make sure that we count the visual scroll column on move/delete, in normal mode

This commit is contained in:
2025-09-11 23:43:09 +01:00
parent ab177dbd7e
commit 8698333f5b
4 changed files with 83 additions and 75 deletions

View File

@@ -400,6 +400,7 @@ struct
val cursorIdx = 0
val startLine = 0
val visualScrollColumn = 0
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val drawMsg = TextBuilder.build
@@ -416,7 +417,16 @@ struct
val mode = NORMAL_MODE ""
in
NormalModeWith.bufferAndCursorIdx
(app, buffer, cursorIdx, mode, startLine, searchList, drawMsg, time)
( app
, buffer
, cursorIdx
, mode
, startLine
, searchList
, drawMsg
, time
, visualScrollColumn
)
end
fun helpDeleteToMatch (app: app_type, low, high, time) =