diff options
author | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-18 21:04:57 +0200 |
---|---|---|
committer | Grzegorz Milka <grzegorzmilka@gmail.com> | 2016-10-22 23:43:14 +0200 |
commit | 9ca90fdb9fda017962129125ea886fbf07345f62 (patch) | |
tree | 8c5003ec5d97666cadb1a20c1cf463c08bf37c78 /test | |
parent | 500c485e36759f23654de3ce792f3d3b68936c01 (diff) | |
download | rneovim-9ca90fdb9fda017962129125ea886fbf07345f62.tar.gz rneovim-9ca90fdb9fda017962129125ea886fbf07345f62.tar.bz2 rneovim-9ca90fdb9fda017962129125ea886fbf07345f62.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/shada/marks_spec.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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() |