diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-10 22:49:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 22:49:32 +0800 |
commit | 0451391ec514eb83c7e366b80fcab21de9f8d4ed (patch) | |
tree | 4cc96627535327590c79177dd5ffe14dd2ee4e69 /test | |
parent | bd98ef6ac6e9f059b943ddfaa6676dc48d9ea832 (diff) | |
download | rneovim-0451391ec514eb83c7e366b80fcab21de9f8d4ed.tar.gz rneovim-0451391ec514eb83c7e366b80fcab21de9f8d4ed.tar.bz2 rneovim-0451391ec514eb83c7e366b80fcab21de9f8d4ed.zip |
fix(mark): properly init mark views (#22996)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/editor/mark_spec.lua | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/functional/editor/mark_spec.lua b/test/functional/editor/mark_spec.lua index 365f8527a0..a6e4b0c5eb 100644 --- a/test/functional/editor/mark_spec.lua +++ b/test/functional/editor/mark_spec.lua @@ -417,4 +417,48 @@ describe('named marks view', function() | ]]) end) + + it('fallback to standard behavior when mark is loaded from shada', function() + local screen = Screen.new(10, 6) + screen:attach() + command('edit ' .. file1) + feed('G') + feed('mA') + screen:expect([[ + 26 line | + 27 line | + 28 line | + 29 line | + ^30 line | + | + ]]) + command('set shadafile=Xtestfile-functional-editor-marks-shada') + finally(function() + command('set shadafile=NONE') + os.remove('Xtestfile-functional-editor-marks-shada') + end) + command('wshada!') + command('bwipe!') + screen:expect([[ + ^ | + ~ | + ~ | + ~ | + ~ | + | + ]]) + command('rshada!') + command('edit ' .. file1) + feed('`"') + screen:expect([[ + 26 line | + 27 line | + 28 line | + 29 line | + ^30 line | + | + ]]) + feed('`A') + screen:expect_unchanged() + end) end) |