Mercurial > vim
comparison src/testdir/test_gf.vim @ 19625:f70a3c1000bb v8.2.0369
patch 8.2.0369: various Normal mode commands not fully tested
Commit: https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 10 07:48:13 2020 +0100
patch 8.2.0369: various Normal mode commands not fully tested
Problem: Various Normal mode commands not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5751)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 Mar 2020 08:00:06 +0100 |
parents | 25ebc35e104f |
children | 252d2bb90394 |
comparison
equal
deleted
inserted
replaced
19624:ce4838c19ca1 | 19625:f70a3c1000bb |
---|---|
128 call assert_fails('normal gf', 'E446:') | 128 call assert_fails('normal gf', 'E446:') |
129 call assert_fails('normal gF', 'E446:') | 129 call assert_fails('normal gF', 'E446:') |
130 call setline(1, '/doesnotexist') | 130 call setline(1, '/doesnotexist') |
131 call assert_fails('normal gf', 'E447:') | 131 call assert_fails('normal gf', 'E447:') |
132 call assert_fails('normal gF', 'E447:') | 132 call assert_fails('normal gF', 'E447:') |
133 call assert_fails('normal [f', 'E447:') | |
134 | |
135 " gf is not allowed when text is locked | |
136 au InsertCharPre <buffer> normal! gF<CR> | |
137 let caught_e523 = 0 | |
138 try | |
139 call feedkeys("ix\<esc>", 'xt') | |
140 catch /^Vim\%((\a\+)\)\=:E523/ " catch E523 | |
141 let caught_e523 = 1 | |
142 endtry | |
143 call assert_equal(1, caught_e523) | |
144 au! InsertCharPre | |
145 | |
133 bwipe! | 146 bwipe! |
134 endfunc | 147 endfunc |
148 | |
149 " vim: shiftwidth=2 sts=2 expandtab |