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
|
let
|
||||||
val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer
|
val {idx, line, leftStrings, leftLines, rightStrings, rightLines} = buffer
|
||||||
in
|
in
|
||||||
if searchLine < idx then
|
if searchLine < line then
|
||||||
helpGoToLineLeft
|
helpGoToLineLeft
|
||||||
( idx
|
( idx
|
||||||
, line
|
, line
|
||||||
@@ -2213,7 +2213,7 @@ struct
|
|||||||
, rightStrings
|
, rightStrings
|
||||||
, rightLines
|
, rightLines
|
||||||
)
|
)
|
||||||
else if searchLine > idx then
|
else if searchLine > line then
|
||||||
helpGoToLineRight
|
helpGoToLineRight
|
||||||
( idx
|
( idx
|
||||||
, line
|
, line
|
||||||
|
|||||||
Reference in New Issue
Block a user