aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/language.lua
diff options
context:
space:
mode:
authorAxel Forsman <axelsfor@gmail.com>2022-08-22 06:48:18 +0200
committerGitHub <noreply@github.com>2022-08-21 21:48:18 -0700
commitd4d27c41b3298c25ae62bc067472bef37bc61c99 (patch)
tree46f56c3cafeb1a59535959a08bc0da36c1eca563 /runtime/lua/vim/treesitter/language.lua
parent4f6d0d6da971ee837864bf96aa28cc24c2d58b5a (diff)
downloadrneovim-d4d27c41b3298c25ae62bc067472bef37bc61c99.tar.gz
rneovim-d4d27c41b3298c25ae62bc067472bef37bc61c99.tar.bz2
rneovim-d4d27c41b3298c25ae62bc067472bef37bc61c99.zip
fix(edit.c): indentkeys double indent after "!" #12894
which is both unexpected and different from the Vim behaviour. Indent was triggered once by the '!' check in insert_execute(), and inserting the char was correctly skipped, but then triggered again in insert_check() (provided that cindent was not being ignored after manual indentation, i.e. `can_cindent == true`). While this is the smallest fix, another solution would be to remove VimState#check and instead move that to *_enter()/-_execute(), since the control flow is pretty unnecessarily convoluted as is. That would also have the benefit of differing less from the Vim source code.
Diffstat (limited to 'runtime/lua/vim/treesitter/language.lua')
0 files changed, 0 insertions, 0 deletions