diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-05 15:09:02 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-05 15:10:46 +0800 |
commit | d9e5737fdceebe17da52d5c9b41db21259449c19 (patch) | |
tree | 769e0b5b6911e953e012b9d368cec5436a3ec134 /src/nvim/indent.c | |
parent | 04ba37773e5755375f4fa3f5af23cbbdb5eb5fc8 (diff) | |
download | rneovim-d9e5737fdceebe17da52d5c9b41db21259449c19.tar.gz rneovim-d9e5737fdceebe17da52d5c9b41db21259449c19.tar.bz2 rneovim-d9e5737fdceebe17da52d5c9b41db21259449c19.zip |
vim-patch:8.2.5122: lisp indenting my run over the end of the line
Problem: Lisp indenting my run over the end of the line.
Solution: Check for NUL earlier.
https://github.com/vim/vim/commit/0e8e938d497260dd57be67b4966cb27a5f72376f
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index 9d60cf9dfe..271498d41a 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -656,6 +656,9 @@ int get_lisp_indent(void) } } } + if (*that == NUL) { + break; + } } if ((*that == '(') || (*that == '[')) { parencount++; |