diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-17 17:32:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-17 17:32:28 +0100 |
commit | 7170b295b06e3168424985530d8477ed2e058b67 (patch) | |
tree | a2041e4732fd89270917ce010c300f3897b49411 /src/testdir | |
parent | eda1da0c9a8db1400649629117e7d248c07735f7 (diff) | |
download | vim-git-7170b295b06e3168424985530d8477ed2e058b67.tar.gz |
patch 8.1.2314: vi' sometimes does not select anythingv8.1.2314
Problem: vi' sometimes does not select anything.
Solution: Recognize an empty selection. (Christian Brabandt, closes #5183)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_textobjects.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_textobjects.vim b/src/testdir/test_textobjects.vim index a3e3851f4..5702a6ad8 100644 --- a/src/testdir/test_textobjects.vim +++ b/src/testdir/test_textobjects.vim @@ -47,6 +47,9 @@ func Test_quote_selection_selection_exclusive() set selection=exclusive exe "norm! fdvhi'y" call assert_equal('bcde', @") + let @"='dummy' + exe "norm! $gevi'y" + call assert_equal('bcde', @") set selection&vim bw! endfunc |