patch 9.1.0178: E1513 might be confusing
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>
diff --git a/src/errors.h b/src/errors.h
index 6e7f28d..5dccc63 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3614,4 +3614,4 @@
EXTERN char e_wrong_character_width_for_field_str[]
INIT(= N_("E1512: Wrong character width for field \"%s\""));
EXTERN char e_winfixbuf_cannot_go_to_buffer[]
- INIT(= N_("E1513: Cannot edit buffer. 'winfixbuf' is enabled"));
+ INIT(= N_("E1513: Cannot switch buffer. 'winfixbuf' is enabled"));
diff --git a/src/testdir/test_winfixbuf.vim b/src/testdir/test_winfixbuf.vim
index 7f692f8..04043f8 100644
--- a/src/testdir/test_winfixbuf.vim
+++ b/src/testdir/test_winfixbuf.vim
@@ -493,7 +493,7 @@
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 @@
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 @@
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 @@
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 @@
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
diff --git a/src/version.c b/src/version.c
index 78c496b..1e2efcb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 178,
+/**/
177,
/**/
176,