summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/highlight.lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-04-05 20:02:58 -0500
committerGitHub <noreply@github.com>2021-04-05 20:02:58 -0500
commit79040e539d4351d7f972e6120c8f958185ee4c84 (patch)
tree7480b16619a7af9f80583e2b0b82a65bc3e9431c /lua/nvim-treesitter/highlight.lua
parentfb8762271c95a64994246109372fe3e5ff97ab2c (diff)
Fix incremental selection (#1135)
So, there are two problems: - There was an infinite loop when inc selection was initiated from an injection. - The comparison was wrong when the whole file was selected, this is because ts matches the EOF. This is an extra line with one char (EOF). I put a workaround to try to select the node from the main tree, but we should try to select the node from the parent tree of the injection, but I wasn't able to get the parent tree from the node.
Diffstat (limited to 'lua/nvim-treesitter/highlight.lua')
0 files changed, 0 insertions, 0 deletions