diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-17 18:00:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-17 18:00:31 +0000 |
commit | 615ddd5342b50a6878a907062aa471740bd9a847 (patch) | |
tree | cfd9016b076095fb8c4aa4b1abace4eb0fcc1578 /src/testdir/test_visual.vim | |
parent | a062006b9de0b2947ab5fb376c6e67ef92a8cd69 (diff) |
patch 8.2.3611: crash when using CTRL-W f without finding a file namev8.2.3611
Problem: Crash when using CTRL-W f without finding a file name.
Solution: Bail out when the file name length is zero.
Diffstat (limited to 'src/testdir/test_visual.vim')
-rw-r--r-- | src/testdir/test_visual.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_visual.vim b/src/testdir/test_visual.vim index 20eb4b43e8..0c89dbb010 100644 --- a/src/testdir/test_visual.vim +++ b/src/testdir/test_visual.vim @@ -1265,6 +1265,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 |