diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-08 11:18:50 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-06-19 16:57:29 -0400 |
| commit | 141df73930159682a48f68a89e02f0b5c38ac9e4 (patch) | |
| tree | d8fcf6103231c9fcc2e88e5791fa0b9729d8508c /src/nvim/testdir | |
| parent | c1d7a280936470c119035a8e6d5a4350571eb68a (diff) | |
| download | rneovim-141df73930159682a48f68a89e02f0b5c38ac9e4.tar.gz rneovim-141df73930159682a48f68a89e02f0b5c38ac9e4.tar.bz2 rneovim-141df73930159682a48f68a89e02f0b5c38ac9e4.zip | |
vim-patch:8.0.0568: 1gd may hang
Problem: "1gd" may hang.
Solution: Don't get stuck in one position. (Christian Brabandt, closes vim/vim#1643)
https://github.com/vim/vim/commit/60402d68da09997cacdeec71fd22c9344f8f40d5
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_goto.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_goto.vim b/src/nvim/testdir/test_goto.vim index 2573401707..ea67fe7386 100644 --- a/src/nvim/testdir/test_goto.vim +++ b/src/nvim/testdir/test_goto.vim @@ -288,3 +288,24 @@ func Test_cursorline_keep_col() set nocursorline endfunc +func Test_gd_local_block() + let lines = [ + \ ' int main()', + \ '{', + \ ' char *a = "NOT NULL";', + \ ' if(a)', + \ ' {', + \ ' char *b = a;', + \ ' printf("%s\n", b);', + \ ' }', + \ ' else', + \ ' {', + \ ' char *b = "NULL";', + \ ' return b;', + \ ' }', + \ '', + \ ' return 0;', + \ '}', + \ ] + call XTest_goto_decl('1gd', lines, 11, 11) +endfunc |