complete: noinsert/noselect should not set 'modified'. #4509

This commit is contained in:
Shougo Matsushita
2016-03-31 20:52:56 +09:00
committed by Justin M. Keyes
parent 5330aa104b
commit d227c843bf
2 changed files with 19 additions and 6 deletions

View File

@@ -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()