aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_cmdline.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-05-05 23:38:15 -0400
committerGitHub <noreply@github.com>2020-05-05 23:38:15 -0400
commitf04a9a2c9aa68f98a79b8d7e9917719a8be6049b (patch)
tree4cd229a5856e1dfb1ad42bcf7e9ea3e0fb07f3dd /src/nvim/testdir/test_cmdline.vim
parentd2766b06c8fc50d06765c5c607744cc6b5f5ef0a (diff)
parented4df85f6bae488d763b5d0eebbf2db9da25551d (diff)
downloadrneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.tar.gz
rneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.tar.bz2
rneovim-f04a9a2c9aa68f98a79b8d7e9917719a8be6049b.zip
Merge #12203 from janlazo/vim-8.2.0648
vim-patch:8.1.{800,868,1581},8.2.{648,649,663,678,681,688,691,692}
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
-rw-r--r--src/nvim/testdir/test_cmdline.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim
index 7f1e1f4456..2c7d64f078 100644
--- a/src/nvim/testdir/test_cmdline.vim
+++ b/src/nvim/testdir/test_cmdline.vim
@@ -801,3 +801,16 @@ func Test_buffers_lastused()
bwipeout bufb
bwipeout bufc
endfunc
+
+" test that ";" works to find a match at the start of the first line
+func Test_zero_line_search()
+ new
+ call setline(1, ["1, pattern", "2, ", "3, pattern"])
+ call cursor(1,1)
+ 0;/pattern/d
+ call assert_equal(["2, ", "3, pattern"], getline(1,'$'))
+ q!
+endfunc
+
+
+" vim: shiftwidth=2 sts=2 expandtab " vim: shiftwidth=2 sts=2 expandtab