diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 13:15:52 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-22 13:17:43 +0800 |
| commit | 1bced9bf94f2767ad5bb91cc902cd58fc126055e (patch) | |
| tree | 1567bd79734174281cf7a6a285970967845be46d /src/nvim/testdir/test_edit.vim | |
| parent | a636e24280abdd2cfe0c0ae6a97f8b0dce564f21 (diff) | |
| download | rneovim-1bced9bf94f2767ad5bb91cc902cd58fc126055e.tar.gz rneovim-1bced9bf94f2767ad5bb91cc902cd58fc126055e.tar.bz2 rneovim-1bced9bf94f2767ad5bb91cc902cd58fc126055e.zip | |
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.
https://github.com/vim/vim/commit/de05bb25733c3319e18dca44e9b59c6ee389eb26
Diffstat (limited to 'src/nvim/testdir/test_edit.vim')
| -rw-r--r-- | src/nvim/testdir/test_edit.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index 162f02dd98..a386c4264c 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -1983,5 +1983,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 |