1
0
forked from aniani/vim

patch 8.2.4074: going over the end of NameBuff

Problem:    Going over the end of NameBuff.
Solution:   Check length when appending a space.
This commit is contained in:
Bram Moolenaar
2022-01-13 13:08:14 +00:00
parent 54598066ca
commit de05bb2573
3 changed files with 22 additions and 4 deletions

View File

@@ -2103,5 +2103,20 @@ func Test_edit_CTRL_hat()
bwipe!
endfunc
" Weird long file name was going over the end of NameBuff
func Test_edit_overlong_file_name()
CheckUnix
file 0000000000000000000000000000
file %%%%%%%%%%%%%%%%%%%%%%%%%%
file %%%%%%
set readonly
set ls=2
redraw!
set noreadonly ls&
bwipe!
endfunc
" vim: shiftwidth=2 sts=2 expandtab