mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
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)
d1ad99b654
Cherry-pick test_registers.vim change from patch 8.2.0644.
This commit is contained in:
15
test/functional/legacy/gf_spec.lua
Normal file
15
test/functional/legacy/gf_spec.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear = helpers.clear
|
||||
local command = helpers.command
|
||||
local eq = helpers.eq
|
||||
local pcall_err = helpers.pcall_err
|
||||
|
||||
describe('gf', function()
|
||||
before_each(clear)
|
||||
|
||||
it('is not allowed when buffer is locked', function()
|
||||
command('au OptionSet diff norm! gf')
|
||||
command([[call setline(1, ['Xfile1', 'line2', 'line3', 'line4'])]])
|
||||
eq('Vim(normal):E788: Not allowed to edit another buffer now', pcall_err(command, 'diffthis'))
|
||||
end)
|
||||
end)
|
Reference in New Issue
Block a user