neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit c374d7809572976c608c3042ce11f72e5d1c7fd4
parent f93f341867bbb311d9fdf50ca18dad61088728ec
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 23 Dec 2025 08:15:32 +0800

test(ui/inccommand_spec): don't check for transient message (#37078)

The check for v:errmsg is enough.
Diffstat:
Mtest/functional/ui/inccommand_spec.lua | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua @@ -11,7 +11,7 @@ local feed = n.feed local insert = n.insert local fn = n.fn local api = n.api -local neq = t.neq +local matches = t.matches local ok = t.ok local retry = t.retry local source = n.source @@ -1633,12 +1633,12 @@ describe("'inccommand' and :cnoremap", function() refresh(case, true) command("cnoremap <expr> x execute('bwipeout!')[-1].'x'") - feed(':%s/tw/tox<enter>') - screen:expect { any = [[{9:^E565:]] } - feed('<c-c>') - + api.nvim_set_vvar('errmsg', '') + feed(':%s/tw/tox') -- error thrown b/c of the mapping - neq(nil, eval('v:errmsg'):find('^E565:')) + matches('^E565:', api.nvim_get_vvar('errmsg')) + + feed('<enter>') expect([[ Inc substitution on toxo lines