diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-07 11:09:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 11:09:50 +0800 |
commit | a935c7531ad01e03cfdf8660b2067145f3c169fa (patch) | |
tree | 3e0ab924afd8f9258fad733ac23fa7ca66affc07 | |
parent | 6f936c9d85a056919f53486c38fcf541466416cc (diff) | |
download | rneovim-a935c7531ad01e03cfdf8660b2067145f3c169fa.tar.gz rneovim-a935c7531ad01e03cfdf8660b2067145f3c169fa.tar.bz2 rneovim-a935c7531ad01e03cfdf8660b2067145f3c169fa.zip |
test(ui/decorations_spec): avoid flakiness caused by undo msg (#25924)
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 68c3e73e61..9c16f76359 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -2024,26 +2024,26 @@ describe('extmark decorations', function() it("highlights do reapply to restored text after delete", function() with_undo_restore(true) -- also default behavior - feed 'u' + command('silent undo') screen:expect{grid=[[ ^for _,{1:item in} ipairs(items) do | local text, hl_id_cell, count = unpack(item) | if hl_id_cell ~= nil then | hl_id = hl_id_cell | - 1 change; before #2 0 seconds ago | + | ]]} end) - it("highlights don't reapply to restored text after delete with no_undo_restore", function() + it("highlights don't reapply to restored text after delete with undo_restore=false", function() with_undo_restore(false) - feed 'u' + command('silent undo') screen:expect{grid=[[ ^for _,it{1:em in} ipairs(items) do | local text, hl_id_cell, count = unpack(item) | if hl_id_cell ~= nil then | hl_id = hl_id_cell | - 1 change; before #2 0 seconds ago | + | ]]} eq({ { 1, 0, 8, { end_col = 13, end_right_gravity = false, end_row = 0, |