Skip to content

Commit

Permalink
Fix type conflict. (onivim#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossR authored and bryphe committed Jul 30, 2019
1 parent 08377bb commit f82d683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/Model/Editor.re
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ let reduce = (view, action, metrics: EditorMetrics.t) =>
| CursorMove(b) => {
/* If the cursor moved, make sure we're snapping to the top line */
/* This fixes a bug where, if the user scrolls, the cursor and topline are out of sync */
...scrollToLine(view, view.lastTopLine, metrics),
...scrollToLine(view, Index.toInt1(view.lastTopLine), metrics),
cursorPosition: b,
}
| SelectionChanged(selection) => {...view, selection}
Expand Down

0 comments on commit f82d683

Please sign in to comment.