comparison src/testdir/test_gf.vim @ 22502:1503ecd54f8a v8.2.1799

patch 8.2.1799: some Normal mode commands not fully tested Commit: https://github.com/vim/vim/commit/d1ad99b65470d3e754f6a0588a6b0dc2214a1eab Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 4 16:16:54 2020 +0200 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 https://github.com/vim/vim/issues/7073)
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Oct 2020 16:30:03 +0200
parents d37e4a856246
children c2c40cefc17b
comparison
equal deleted inserted replaced
22501:ce527f2034c0 22502:1503ecd54f8a
181 endtry 181 endtry
182 call assert_equal(1, caught_e565) 182 call assert_equal(1, caught_e565)
183 au! InsertCharPre 183 au! InsertCharPre
184 184
185 bwipe! 185 bwipe!
186
187 " gf is not allowed when buffer is locked
188 new
189 augroup Test_gf
190 au!
191 au OptionSet diff norm! gf
192 augroup END
193 call setline(1, ['Xfile1', 'line2', 'line3', 'line4'])
194 call test_override('starting', 1)
195 call assert_fails('diffthis', 'E788:')
196 call test_override('starting', 0)
197 augroup Test_gf
198 au!
199 augroup END
200 bw!
186 endfunc 201 endfunc
187 202
188 " If a file is not found by 'gf', then 'includeexpr' should be used to locate 203 " If a file is not found by 'gf', then 'includeexpr' should be used to locate
189 " the file. 204 " the file.
190 func Test_gf_includeexpr() 205 func Test_gf_includeexpr()