Skip to content

Commit be68eec

Browse files
committedMay 10, 2024
fix(jump): call add-offset! before redrawing the cursor
Closes ggandor/flit.nvim#50.
1 parent f1f19fc commit be68eec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎fnl/leap/jump.fnl

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ the API), make the motion appear to behave as an inclusive one."
7777
(api.nvim_set_current_win winid))
7878

7979
(api.nvim_win_set_cursor 0 [lnum (- col 1)]) ; (1,1) -> (1,0)
80+
(when offset (add-offset! offset))
8081
(pcall api.nvim__redraw {:cursor true}) ; EXPERIMENTAL
8182

82-
(when offset (add-offset! offset))
8383
; Since Vim interprets our jump as an exclusive motion (:h exclusive),
8484
; we need custom tweaks to behave as an inclusive one. (This is only
8585
; relevant in the forward direction, as inclusiveness applies to the

‎lua/leap/jump.lua

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)