aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-treesitter.lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-05 19:06:09 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-07 18:24:55 +0200
commit9c456edb3ad24be92a54b42545df8f0d0ee4c71b (patch)
treeeb49ea2ff33a236758f14328683e326702720dff /lua/nvim-treesitter.lua
parentFold: respect max_fold_level from 'foldnestmax' (diff)
downloadnvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar.gz
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar.bz2
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar.lz
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar.xz
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.tar.zst
nvim-treesitter-9c456edb3ad24be92a54b42545df8f0d0ee4c71b.zip
Incremental selection: fix skipping some nodes
The range from ts nodes are a little different than neovim's nodes. They start at 0 and the end is exclusive. For example, a nvim range (1, 3, 2, 4) is the equivalent to the ts range (0, 2, 1, 4). Since we may hit parent nodes that have the same range as its child, we skip those till we find one that actually changes the selection (since this is the relevant part for the user). Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/232
Diffstat (limited to 'lua/nvim-treesitter.lua')
0 files changed, 0 insertions, 0 deletions