diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-12-05 16:13:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 16:13:39 +0100 |
commit | ca4fe083e5b1a7c2e93cf77aa849fbec72757627 (patch) | |
tree | 161c0a3259265f9f1200d3af301ba5d088a001a3 /test/functional/api/extmark_spec.lua | |
parent | 14572727261278e5bf68080c9369a8507f3d564f (diff) | |
parent | 1cc358aed6fde4f537d971ad9ee207f3d4afc97a (diff) | |
download | rneovim-ca4fe083e5b1a7c2e93cf77aa849fbec72757627.tar.gz rneovim-ca4fe083e5b1a7c2e93cf77aa849fbec72757627.tar.bz2 rneovim-ca4fe083e5b1a7c2e93cf77aa849fbec72757627.zip |
Merge pull request #26361 from luukvbaal/invalid
fix(extmarks): restore old position before revalidating
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 44a151cf6a..8bfb0effba 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1628,26 +1628,27 @@ describe('API/extmarks', function() screen = Screen.new(40, 6) screen:attach() feed('dd6iaaa bbb ccc<CR><ESC>gg') - set_extmark(ns, 1, 0, 0, { invalidate = true, sign_text = 'S1' }) - set_extmark(ns, 2, 1, 0, { invalidate = true, sign_text = 'S2' }) + meths.set_option_value('signcolumn', 'auto:2', {}) + set_extmark(ns, 1, 0, 0, { invalidate = true, sign_text = 'S1', end_row = 1 }) + set_extmark(ns, 2, 1, 0, { invalidate = true, sign_text = 'S2', end_row = 2 }) -- mark with invalidate is removed - command('d') + command('d2') screen:expect([[ S2^aaa bbb ccc | aaa bbb ccc | aaa bbb ccc | aaa bbb ccc | - aaa bbb ccc | + | | ]]) -- mark is restored with undo_restore == true command('silent undo') screen:expect([[ - S1^aaa bbb ccc | - S2aaa bbb ccc | - aaa bbb ccc | - aaa bbb ccc | - aaa bbb ccc | + S1 ^aaa bbb ccc | + S1S2aaa bbb ccc | + S2 aaa bbb ccc | + aaa bbb ccc | + aaa bbb ccc | | ]]) -- mark is deleted with undo_restore == false |