0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.2.1799: some Normal mode commands not fully tested

Problem:    Some Normal mode commands not fully tested.
Solution:   Add a few more tests. (Yegappan Lakshmanan, closes #7073)
This commit is contained in:
Bram Moolenaar
2020-10-04 16:16:54 +02:00
parent 1310660557
commit d1ad99b654
8 changed files with 122 additions and 24 deletions

View File

@@ -122,6 +122,24 @@ func Test_gd()
call XTest_goto_decl('gd', lines, 3, 14)
endfunc
" Using gd to jump to a declaration in a fold
func Test_gd_with_fold()
new
let lines =<< trim END
#define ONE 1
#define TWO 2
#define THREE 3
TWO
END
call setline(1, lines)
1,3fold
call feedkeys('Ggd', 'xt')
call assert_equal(2, line('.'))
call assert_equal(-1, foldclosedend(2))
bw!
endfunc
func Test_gd_not_local()
let lines =<< trim [CODE]
int func1(void)