summaryrefslogtreecommitdiff
path: root/src/testdir/test_cindent.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-16 18:06:15 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-16 18:06:15 +0100
commit60ae0e71490c97f2871a6344aca61cacf220f813 (patch)
tree0d121e2e77ddcdb1b5e37f5ca68d91d3dfdc899d /src/testdir/test_cindent.vim
parent3c25a8617aad9860a1b179d40a183c638b3b70cc (diff)
downloadvim-git-60ae0e71490c97f2871a6344aca61cacf220f813.tar.gz
patch 8.2.4968: reading past end of the line when C-indentingv8.2.4968
Problem: Reading past end of the line when C-indenting. Solution: Check for NUL.
Diffstat (limited to 'src/testdir/test_cindent.vim')
-rw-r--r--src/testdir/test_cindent.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim
index dbd4aa006..c65a0dab3 100644
--- a/src/testdir/test_cindent.vim
+++ b/src/testdir/test_cindent.vim
@@ -5319,6 +5319,13 @@ func Test_cindent_change_multline()
close!
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