diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-02 10:23:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-02 10:23:43 +0800 |
commit | bc43575c521ab822efc8c25439dbad59aa119188 (patch) | |
tree | a9f4ad40e7f68f83e306d9a657fbb3ca4915401a | |
parent | 597355deae2ebddcb8b930da9a8b45a65d05d09b (diff) | |
download | rneovim-bc43575c521ab822efc8c25439dbad59aa119188.tar.gz rneovim-bc43575c521ab822efc8c25439dbad59aa119188.tar.bz2 rneovim-bc43575c521ab822efc8c25439dbad59aa119188.zip |
test(shada/marks_spec): load the file with the marks (#24979)
-rw-r--r-- | test/functional/shada/marks_spec.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua index 07364382e8..a73e9a244d 100644 --- a/test/functional/shada/marks_spec.lua +++ b/test/functional/shada/marks_spec.lua @@ -250,7 +250,7 @@ describe('ShaDa support code', function() eq(0, exc_exec('rshada')) end) - it('updates deleted marks', function() + it('updates deleted marks with :delmarks', function() nvim_command('edit ' .. testfilename) nvim_command('mark A') @@ -259,12 +259,15 @@ describe('ShaDa support code', function() -- since it can't be set via :mark feed('ggifoobar<esc>') nvim_command('wshada') - nvim_command('normal! `A`a`.') + reset() + nvim_command('edit ' .. testfilename) + nvim_command('normal! `A`a`.') nvim_command('delmarks A a .') nvim_command('wshada') reset() + nvim_command('edit ' .. testfilename) eq('Vim(normal):E20: Mark not set', exc_exec('normal! `A')) eq('Vim(normal):E20: Mark not set', exc_exec('normal! `a')) eq('Vim(normal):E20: Mark not set', exc_exec('normal! `.')) |