diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-04-05 20:02:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 20:02:58 -0500 |
| commit | 79040e539d4351d7f972e6120c8f958185ee4c84 (patch) | |
| tree | 7480b16619a7af9f80583e2b0b82a65bc3e9431c /lua/nvim-treesitter.lua | |
| parent | Small update to README (diff) | |
| download | nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar.gz nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar.bz2 nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar.lz nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar.xz nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.tar.zst nvim-treesitter-79040e539d4351d7f972e6120c8f958185ee4c84.zip | |
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.lua')
0 files changed, 0 insertions, 0 deletions
