mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #5704 from jamessan/vim-7.4.1748
vim-patch:7.4.1748 vim-patch:f9660b5
This commit is contained in:
commit
e29a4ceede
@ -3646,10 +3646,11 @@ nv_gd (
|
||||
size_t len;
|
||||
char_u *ptr;
|
||||
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0
|
||||
|| !find_decl(ptr, len, nchar == 'd', thisblock, 0))
|
||||
|| !find_decl(ptr, len, nchar == 'd', thisblock, SEARCH_START)) {
|
||||
clearopbeep(oap);
|
||||
else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP)
|
||||
} else if ((fdo_flags & FDO_SEARCH) && KeyTyped && oap->op_type == OP_NOP) {
|
||||
foldOpenCursor();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -8,6 +8,7 @@ source test_ex_undo.vim
|
||||
source test_expr.vim
|
||||
source test_expr_utf8.vim
|
||||
source test_feedkeys.vim
|
||||
source test_goto.vim
|
||||
source test_menu.vim
|
||||
source test_messages.vim
|
||||
source test_options.vim
|
||||
|
10
src/nvim/testdir/test_goto.vim
Normal file
10
src/nvim/testdir/test_goto.vim
Normal file
@ -0,0 +1,10 @@
|
||||
" Test commands that jump somewhere.
|
||||
|
||||
func Test_geedee()
|
||||
new
|
||||
call setline(1, ["Filename x;", "", "int Filename", "int func() {", "Filename y;"])
|
||||
/y;/
|
||||
normal gD
|
||||
call assert_equal(1, line('.'))
|
||||
quit!
|
||||
endfunc
|
@ -696,7 +696,7 @@ static int included_patches[] = {
|
||||
// 1751,
|
||||
// 1750 NA
|
||||
// 1749 NA
|
||||
// 1748,
|
||||
1748,
|
||||
// 1747 NA
|
||||
// 1746 NA
|
||||
// 1745 NA
|
||||
|
Loading…
Reference in New Issue
Block a user