From 9ca90fdb9fda017962129125ea886fbf07345f62 Mon Sep 17 00:00:00 2001 From: Grzegorz Milka Date: Tue, 18 Oct 2016 21:04:57 +0200 Subject: 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) https://github.com/vim/vim/commit/e59215c7dcae17b03daf39517560cfaa03314f5a --- test/functional/shada/marks_spec.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/functional/shada/marks_spec.lua') diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua index 646b0b692e..b743c3a4b7 100644 --- a/test/functional/shada/marks_spec.lua +++ b/test/functional/shada/marks_spec.lua @@ -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() -- cgit