remove todo-exception from 'G' (NormalMove.goToEnd) command. The todo was a reminder to implement a way to get the scroll line when moving to the end. We have that implemented now.

This commit is contained in:
2025-09-13 18:15:30 +01:00
parent bfb653e059
commit 18d2579605
2 changed files with 495 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ struct
, searchString
, bufferModifyTime
, visualScrollColumn = prevScrollColumn
, startLine = prevLineNumber
, ...
} = app
@@ -72,8 +73,9 @@ struct
val visualScrollColumn =
TextScroll.getScrollColumn
(buffer, bufferIdx, windowWidth, prevScrollColumn)
val bufferLine = let in raise Fail "todo: fix" end
val bufferLine =
TextScroll.getStartLine (prevLineNumber, bufferLine, windowHeight)
val buffer = LineGap.goToLine (bufferLine, buffer)
val drawMsg = NormalModeTextBuilder.build