fix starting 'goToLine' function in line_gap.sml; previously, we were comparing 'searchLine' to 'idx' to decide where to move buffer, but now we are comparing 'searchLine' to buffer's 'line' instead which is correct
This commit is contained in:
@@ -2203,7 +2203,7 @@ struct
|
||||
let
|
||||
val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer
|
||||
in
|
||||
if searchLine < idx then
|
||||
if searchLine < line then
|
||||
helpGoToLineLeft
|
||||
( idx
|
||||
, line
|
||||
@@ -2213,7 +2213,7 @@ struct
|
||||
, rightStrings
|
||||
, rightLines
|
||||
)
|
||||
else if searchLine > idx then
|
||||
else if searchLine > line then
|
||||
helpGoToLineRight
|
||||
( idx
|
||||
, line
|
||||
|
||||
Reference in New Issue
Block a user