Skip to content

Commit

Permalink
fix(treesitter): redraw selection after scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ggandor committed Jul 30, 2024
1 parent b731280 commit c6bfb19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fnl/leap/treesitter.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
; Move to the start. This might be more intuitive for incremental
; selection, when the whole range is not visible - nodes are usually
; harder to identify at their end.
(vim.cmd "normal! o"))
(vim.cmd "normal! o")
; Force redrawing the selection if the text has been scrolled.
(pcall api.nvim__redraw {:flush true})) ; EXPERIMENTAL


(local ns (api.nvim_create_namespace ""))
Expand Down
3 changes: 2 additions & 1 deletion lua/leap/treesitter.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6bfb19

Please sign in to comment.