1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-05-16 18:06:15 +01:00
parent 3c25a8617a
commit 60ae0e7149
3 changed files with 10 additions and 1 deletions

View File

@@ -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