aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorlonerover <pathfinder1644@yahoo.com>2017-01-01 00:30:04 +0800
committerJustin M. Keyes <justinkz@gmail.com>2016-12-31 17:30:04 +0100
commitb37da9c66425464aa6a44eeffe9f05173dc42254 (patch)
treef8f7fb3d8bf1a024fbcc82ee77b2c4b6626449aa /src/nvim/testdir
parentaa35cd9af0a3909ae79403e56639c1b3212583a9 (diff)
downloadrneovim-b37da9c66425464aa6a44eeffe9f05173dc42254.tar.gz
rneovim-b37da9c66425464aa6a44eeffe9f05173dc42254.tar.bz2
rneovim-b37da9c66425464aa6a44eeffe9f05173dc42254.zip
vim-patch:7.4.1940 (#5849)
Problem: "gd" hangs in some situations. (Eric Biggers) Solution: Remove the SEARCH_START flag when looping. Add a test. https://github.com/vim/vim/commit/23c60f21b07b04351d846e6fbf4f4abd9aa09345
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_goto.vim12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_goto.vim b/src/nvim/testdir/test_goto.vim
index fb8f190fa6..2afd96b296 100644
--- a/src/nvim/testdir/test_goto.vim
+++ b/src/nvim/testdir/test_goto.vim
@@ -1,6 +1,6 @@
" Test commands that jump somewhere.
-func Test_geedee()
+func Test_geeDEE()
new
call setline(1, ["Filename x;", "", "int Filename", "int func() {", "Filename y;"])
/y;/
@@ -8,3 +8,13 @@ func Test_geedee()
call assert_equal(1, line('.'))
quit!
endfunc
+
+func Test_gee_dee()
+ new
+ call setline(1, ["int x;", "", "int func(int x)", "{", " return x;", "}"])
+ /return/
+ normal $hgd
+ call assert_equal(3, line('.'))
+ call assert_equal(14, col('.'))
+ quit!
+endfunc