Skip to content

Commit

Permalink
EditorViewModel: update cursor when covered by a scroll region
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Jun 6, 2019
1 parent 58c0ae4 commit 386cab8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ViewModels/EditorViewModel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ and EditorViewModel(GridId: int, ?parent: EditorViewModel, ?_gridsize: GridSize,
for i = bot + rows - 1 downto top do
copy i (i-rows)

if top <= cursor_row
&& cursor_row <= bot
&& left <= cursor_col
&& cursor_col <= right
then
this.cursorConfig()

let setOption (opt: UiOption) =
trace "setOption: %A" opt

Expand Down

0 comments on commit 386cab8

Please sign in to comment.