diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-09-24 17:46:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 17:46:44 -0500 |
| commit | e4c56e691a56dfb25ead19aad7fa6b08879b569f (patch) | |
| tree | 70b7afc8d13c240a3ce74363b39efa04ee80832a /queries/lua | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar.gz nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar.bz2 nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar.lz nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar.xz nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.tar.zst nvim-treesitter-e4c56e691a56dfb25ead19aad7fa6b08879b569f.zip | |
Use vim-range style (1-index based) when possible (#1841)
https://github.com/nvim-treesitter/nvim-treesitter/pull/1829
half fixed incremental selection for the vim parser,
but other bugs still remain (infinite selection and skip selecting the
root node).
Problems can be replicated with these two files:
(missing selecting the root node)
```vim
set scrolloff=7
set scrolloff=7
```
(infinite loop)
```vim
set scrolloff=7
```
The main problem is that we try to map
the current selection range to a TS range,
but the TS range of a node could include the EOL/EOL marks
so it's impossible to know when to change the vim range
to match the TS range, is more easy to transform the
TS range to a vim range and do the comparison.
Diffstat (limited to 'queries/lua')
0 files changed, 0 insertions, 0 deletions
