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/fold.lua | |
| parent | fb8762271c95a64994246109372fe3e5ff97ab2c (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/fold.lua')
0 files changed, 0 insertions, 0 deletions
