aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_gf.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-20 08:16:02 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-15 20:24:43 +0800
commit76b4b1977ba3f3a1f630468a2ce89f47f2cedec4 (patch)
tree7d899e1d86a5e939c231ee18e66f4cea9bd7aa5a /src/nvim/testdir/test_gf.vim
parent37586eac42b285b97e6b85e736750c4f15df068d (diff)
downloadrneovim-76b4b1977ba3f3a1f630468a2ce89f47f2cedec4.tar.gz
rneovim-76b4b1977ba3f3a1f630468a2ce89f47f2cedec4.tar.bz2
rneovim-76b4b1977ba3f3a1f630468a2ce89f47f2cedec4.zip
vim-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 vim/vim#7073) https://github.com/vim/vim/commit/d1ad99b65470d3e754f6a0588a6b0dc2214a1eab Cherry-pick test_registers.vim change from patch 8.2.0644.
Diffstat (limited to 'src/nvim/testdir/test_gf.vim')
-rw-r--r--src/nvim/testdir/test_gf.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_gf.vim b/src/nvim/testdir/test_gf.vim
index feae44e5ee..b2bb189688 100644
--- a/src/nvim/testdir/test_gf.vim
+++ b/src/nvim/testdir/test_gf.vim
@@ -191,6 +191,22 @@ func Test_gf_error()
au! InsertCharPre
bwipe!
+
+ " gf is not allowed when buffer is locked
+ new
+ augroup Test_gf
+ au!
+ au OptionSet diff norm! gf
+ augroup END
+ call setline(1, ['Xfile1', 'line2', 'line3', 'line4'])
+ " Nvim does not support test_override()
+ " call test_override('starting', 1)
+ " call assert_fails('diffthis', 'E788:')
+ " call test_override('starting', 0)
+ augroup Test_gf
+ au!
+ augroup END
+ bw!
endfunc
" If a file is not found by 'gf', then 'includeexpr' should be used to locate