summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_winfixbuf.vim
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-03-13 20:59:27 +0100
committerChristian Brabandt <cb@256bit.org>2024-03-13 20:59:27 +0100
commit0a32b8854b52381fd17a6fcc5e38a3b9e77c8923 (patch)
tree55566ff53c9fe6281bfa96c70f6a1e8be0b06e3a /src/testdir/test_winfixbuf.vim
parent8c55d60658b7ee3458dca57fc5eec90ca9bb9bf3 (diff)
patch 9.1.0178: E1513 might be confusingv9.1.0178
Problem: E1513 might be confusing (Christoph Thoma) Solution: reword error message, fix test to not depend on the actual message fixes: #14189 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_winfixbuf.vim')
-rw-r--r--src/testdir/test_winfixbuf.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_winfixbuf.vim b/src/testdir/test_winfixbuf.vim
index 7f692f865c..04043f8734 100644
--- a/src/testdir/test_winfixbuf.vim
+++ b/src/testdir/test_winfixbuf.vim
@@ -493,7 +493,7 @@ func Test_browse_edit_fail()
try
browse edit! other
call assert_equal(l:other, bufnr())
- catch /E338:/
+ catch /^Vim\%((\a\+)\)\=:E338:/
" Ignore E338, which occurs if console Vim is built with +browse.
" Console Vim without +browse will treat this as a regular :edit.
endtry
@@ -511,7 +511,7 @@ func Test_browse_edit_pass()
try
browse write other
- catch /E338:/
+ catch /^Vim\%((\a\+)\)\=:E338:/
" Ignore E338, which occurs if console Vim is built with +browse.
" Console Vim without +browse will treat this as a regular :write.
endtry
@@ -2532,7 +2532,7 @@ EOF
try
pyxdo test_winfixbuf_Test_pythonx_pyxdo_set_buffer()
- catch /Vim(pyxdo):vim.error: Vim:E1513: Cannot edit buffer. 'winfixbuf' is enabled/
+ catch /Vim\%((\a\+)\)\=:E1513:/
let l:caught = 1
endtry
@@ -2563,7 +2563,7 @@ func Test_pythonx_pyxfile()
try
pyxfile file.py
- catch /Vim(pyxfile):vim.error: Vim:E1513: Cannot edit buffer. 'winfixbuf' is enabled/
+ catch /Vim\%((\a\+)\)\=:E1513:/
let l:caught = 1
endtry
@@ -2596,7 +2596,7 @@ import vim
buffer = vim.vars["_previous_buffer"]
vim.current.buffer = vim.buffers[buffer]
EOF
- catch /Vim(pythonx):vim\.error: Vim:E1513: Cannot edit buffer. 'winfixbuf' is enabled/
+ catch /Vim\%((\a\+)\)\=:E1513:/
let l:caught = 1
endtry