diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-10 07:48:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-10 07:48:13 +0100 |
commit | 1671f4488105ee12a6a8558ae351436c26ab55fc (patch) | |
tree | 2e6bd3ba9c7cb5a443d97c03bc82046ff3ce087c /src/testdir/test_gf.vim | |
parent | 5269bd2a724fdb8c16c9635ef744a670f1bc8bd5 (diff) | |
download | vim-git-1671f4488105ee12a6a8558ae351436c26ab55fc.tar.gz |
patch 8.2.0369: various Normal mode commands not fully testedv8.2.0369
Problem: Various Normal mode commands not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5751)
Diffstat (limited to 'src/testdir/test_gf.vim')
-rw-r--r-- | src/testdir/test_gf.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test_gf.vim b/src/testdir/test_gf.vim index 4a4ffcefa..829b7c299 100644 --- a/src/testdir/test_gf.vim +++ b/src/testdir/test_gf.vim @@ -130,5 +130,20 @@ func Test_gf_error() call setline(1, '/doesnotexist') call assert_fails('normal gf', 'E447:') call assert_fails('normal gF', 'E447:') + call assert_fails('normal [f', 'E447:') + + " gf is not allowed when text is locked + au InsertCharPre <buffer> normal! gF<CR> + let caught_e523 = 0 + try + call feedkeys("ix\<esc>", 'xt') + catch /^Vim\%((\a\+)\)\=:E523/ " catch E523 + let caught_e523 = 1 + endtry + call assert_equal(1, caught_e523) + au! InsertCharPre + bwipe! endfunc + +" vim: shiftwidth=2 sts=2 expandtab |