aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_visual.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-02 09:28:16 +0800
committerGitHub <noreply@github.com>2022-07-02 09:28:16 +0800
commitf71d518c90b46dd7c53d151a59ff9a5236589f64 (patch)
tree2fa282eec758d1e6b00890994dfebf6776039901 /src/nvim/testdir/test_visual.vim
parent5bd1bdee142b9021c297ba540fd2ee8a0c42bea0 (diff)
parentd358856a0c78d73f9d850df5f722c5572014e90c (diff)
downloadrneovim-f71d518c90b46dd7c53d151a59ff9a5236589f64.tar.gz
rneovim-f71d518c90b46dd7c53d151a59ff9a5236589f64.tar.bz2
rneovim-f71d518c90b46dd7c53d151a59ff9a5236589f64.zip
Merge pull request #19199 from zeertzjq/vim-9.0.0017
vim-patch:9.0.{0017,0021,0022}: invalid memory access
Diffstat (limited to 'src/nvim/testdir/test_visual.vim')
-rw-r--r--src/nvim/testdir/test_visual.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_visual.vim b/src/nvim/testdir/test_visual.vim
index 41c29c5bb0..492750fa66 100644
--- a/src/nvim/testdir/test_visual.vim
+++ b/src/nvim/testdir/test_visual.vim
@@ -1431,5 +1431,17 @@ func Test_visual_paste_clipboard()
bwipe!
endfunc
+func Test_visual_area_adjusted_when_hiding()
+ " The Visual area ended after the end of the line after :hide
+ call setline(1, 'xxx')
+ vsplit Xfile
+ call setline(1, 'xxxxxxxx')
+ norm! $o
+ hid
+ norm! zW
+ bwipe!
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab