vim-patch:7.4.2212

Problem:    Mark " is not set when closing a window in another tab. (Guraga)
Solution:   Check all tabs for the window to be valid. (based on patch by
            Hirohito Higashi, closes vim/vim#974)

e59215c7dc
This commit is contained in:
Grzegorz Milka
2016-10-18 21:04:57 +02:00
parent 500c485e36
commit 9ca90fdb9f
4 changed files with 32 additions and 3 deletions

View File

@@ -102,6 +102,18 @@ describe('ShaDa support code', function()
eq(2, nvim_current_line())
end)
it('is able to dump and read back mark " from a closed tab', function()
nvim_command('edit ' .. testfilename)
nvim_command('edit ' .. testfilename_2)
nvim_command('2')
nvim_command('q!')
nvim_command('qall')
reset()
nvim_command('edit ' .. testfilename_2)
nvim_command('normal! `"')
eq(2, nvim_current_line())
end)
it('is able to populate v:oldfiles', function()
nvim_command('edit ' .. testfilename)
local tf_full = curbufmeths.get_name()