mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
complete: noinsert/noselect should not set 'modified'. #4509
This commit is contained in:
committed by
Justin M. Keyes
parent
5330aa104b
commit
d227c843bf
@@ -100,6 +100,18 @@ describe('completion', function()
|
||||
feed('o<C-r>=TestComplete()<CR><ESC>')
|
||||
eq('', eval('getline(3)'))
|
||||
end)
|
||||
it('does not change modified state if noinsert', function()
|
||||
execute('set completeopt+=menuone,noinsert')
|
||||
execute('setlocal nomodified')
|
||||
feed('i<C-r>=TestComplete()<CR><ESC>')
|
||||
eq(0, eval('&l:modified'))
|
||||
end)
|
||||
it('does not change modified state if noselect', function()
|
||||
execute('set completeopt+=menuone,noselect')
|
||||
execute('setlocal nomodified')
|
||||
feed('i<C-r>=TestComplete()<CR><ESC>')
|
||||
eq(0, eval('&l:modified'))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("refresh:always", function()
|
||||
|
||||
Reference in New Issue
Block a user