aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-17 08:07:51 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-05-17 08:16:31 +0800
commit26c906f54dafb37f7bc63e136a7a9373d1053fe1 (patch)
tree50be4d79dea38d308f0b69d668f5ba912afb2947 /src/nvim/testdir
parentb8c0eeaa30c478c1017ee16919d7cb263e70e8f3 (diff)
downloadrneovim-26c906f54dafb37f7bc63e136a7a9373d1053fe1.tar.gz
rneovim-26c906f54dafb37f7bc63e136a7a9373d1053fe1.tar.bz2
rneovim-26c906f54dafb37f7bc63e136a7a9373d1053fe1.zip
vim-patch:8.2.4968: reading past end of the line when C-indenting
Problem: Reading past end of the line when C-indenting. Solution: Check for NUL. https://github.com/vim/vim/commit/60ae0e71490c97f2871a6344aca61cacf220f813
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cindent.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cindent.vim b/src/nvim/testdir/test_cindent.vim
index 4d69aed96c..7ba8ef3397 100644
--- a/src/nvim/testdir/test_cindent.vim
+++ b/src/nvim/testdir/test_cindent.vim
@@ -5311,6 +5311,13 @@ func Test_cindent_case()
bwipe!
endfunc
+" This was reading past the end of the line
+func Test_cindent_check_funcdecl()
+ new
+ sil norm o0('\0=L
+ bwipe!
+endfunc
+
func Test_cindent_scopedecls()
new
setl cindent ts=4 sw=4