aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/cmdline_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-31 09:41:00 +0800
committerGitHub <noreply@github.com>2022-08-31 09:41:00 +0800
commitf4274d0f62625683486d3912dcd6e8e45877c6a4 (patch)
tree0cd11124da408c95c9d2ebed761e558485dfbe5f /test/functional/legacy/cmdline_spec.lua
parent5ff2ea66873dc0bcd1921158a93e363f009b245d (diff)
downloadrneovim-f4274d0f62625683486d3912dcd6e8e45877c6a4.tar.gz
rneovim-f4274d0f62625683486d3912dcd6e8e45877c6a4.tar.bz2
rneovim-f4274d0f62625683486d3912dcd6e8e45877c6a4.zip
vim-patch:8.2.3102: test for crash fix does not fail without the fix (#20018)
Problem: Test for crash fix does not fail without the fix. Solution: Adjust the test sequence. (closes vim/vim#8506) https://github.com/vim/vim/commit/3777d6e32b22f0a70b774760c24160079e303bad Cherry-pick CheckUnix from patch 8.2.1432.
Diffstat (limited to 'test/functional/legacy/cmdline_spec.lua')
-rw-r--r--test/functional/legacy/cmdline_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/legacy/cmdline_spec.lua b/test/functional/legacy/cmdline_spec.lua
index 65b46f793d..99d2d0f30e 100644
--- a/test/functional/legacy/cmdline_spec.lua
+++ b/test/functional/legacy/cmdline_spec.lua
@@ -5,6 +5,7 @@ local command = helpers.command
local feed = helpers.feed
local feed_command = helpers.feed_command
local exec = helpers.exec
+local pesc = helpers.pesc
describe('cmdline', function()
before_each(clear)
@@ -158,7 +159,7 @@ describe('cmdwin', function()
command('set more')
command('autocmd WinNew * highlight')
feed('q:')
- screen:expect({any = '{3:%-%- More %-%-}^'})
+ screen:expect({any = pesc('{3:-- More --}^')})
feed('q')
screen:expect([[
|