summaryrefslogtreecommitdiff
path: root/queries/javascript
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 /queries/javascript
parenta5360d02e4d3fddd86e8f0552bf7017b85c54737 (diff)
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 'queries/javascript')
0 files changed, 0 insertions, 0 deletions