add searchScrollColumn to NORMAL_SEARCH_MODE variant, and update and recalculate it where needed

This commit is contained in:
2025-09-14 09:50:07 +01:00
parent b556fc7d63
commit f1a06f946d
5 changed files with 92 additions and 17 deletions

View File

@@ -34,6 +34,9 @@ struct
(startOfLine, cursorIdx, windowWidth, prevScrollColumn)
end
fun getScrollColumnFromString (cursorIdx, windowWidth, prevScrollColumn) =
calculateScrollColumn (0, cursorIdx, windowWidth, prevScrollColumn)
fun getStartLine (prevLineNumber, cursorLine, windowHeight) =
if cursorLine <= (prevLineNumber + 3) then
(* cursorLine is prior to or same as prevLineNumber,