diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-18 10:05:31 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-18 10:05:31 +0800 |
| commit | ec39e1e421101d2573ca5f9003238adfcd45dcd1 (patch) | |
| tree | 5c8a2f3b2a89d7ec13140d10998c742d28aa7820 /src/nvim/testdir | |
| parent | 0a65d821fcc3fe1cab52b4102f2a55b7aa89df03 (diff) | |
| download | rneovim-ec39e1e421101d2573ca5f9003238adfcd45dcd1.tar.gz rneovim-ec39e1e421101d2573ca5f9003238adfcd45dcd1.tar.bz2 rneovim-ec39e1e421101d2573ca5f9003238adfcd45dcd1.zip | |
vim-patch:8.2.3611: crash when using CTRL-W f without finding a file name
Problem: Crash when using CTRL-W f without finding a file name.
Solution: Bail out when the file name length is zero.
https://github.com/vim/vim/commit/615ddd5342b50a6878a907062aa471740bd9a847
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_visual.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim index 2e26da4947..e1e7765e06 100644 --- a/src/nvim/testdir/test_visual.vim +++ b/src/nvim/testdir/test_visual.vim @@ -1123,6 +1123,14 @@ func Test_visual_block_with_virtualedit() call delete('XTest_block') endfunc +func Test_visual_block_ctrl_w_f() + " Emtpy block selected in new buffer should not result in an error. + au! BufNew foo sil norm f + edit foo + + au! BufNew +endfunc + func Test_visual_reselect_with_count() " this was causing an illegal memory access let lines =<< trim END |