diff options
author | Jaehwang Jung <tomtomjhj@gmail.com> | 2024-06-20 22:37:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 06:37:09 -0700 |
commit | 0e3e1e6b6d8370f1fcc9887d5cb931b131450a1c (patch) | |
tree | 6d963175f6aab06874952e0ba692cf65a9ca083e /runtime/lua/vim/text.lua | |
parent | b923fcbaf06276051372c17177a9970c4adc8e3d (diff) | |
download | rneovim-0e3e1e6b6d8370f1fcc9887d5cb931b131450a1c.tar.gz rneovim-0e3e1e6b6d8370f1fcc9887d5cb931b131450a1c.tar.bz2 rneovim-0e3e1e6b6d8370f1fcc9887d5cb931b131450a1c.zip |
fix(treesitter): don't open fold when o/O adds a line below #28709
Problem:
`o`-ing on a folded line opens the fold, because the new line gets the
fold level from the above line (level '='), which extends the fold to
the new line. `O` has a similar problem when run on the line below a
fold.
Solution:
Use -1 for the added line to get the lower level from the above/below
line.
Diffstat (limited to 'runtime/lua/vim/text.lua')
0 files changed, 0 insertions, 0 deletions