diff options
author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-07 21:37:50 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-07 21:38:21 +0100 |
commit | 769eb2d0c3614f9ea6fffa82329558f1a4af384f (patch) | |
tree | 3df9b0c6745a0a8d622f1b6bcf77e290e7290476 /src/ex_cmds2.c | |
parent | 64de03a22bcb3ea15a215673c08390e6babcc03f (diff) |
patch 9.1.0156: Make 'wfb' failing to split still report E1513v9.1.0156
Problem: may not be clear why failing to split causes an ":Xdo" command
to abort if 'wfb' is set.
Solution: do not return immediately if win_split fails, so E1513 is
still given. Expect both errors in the test. Also fix tests to
pass CI.
(Sean Dewar)
closes: #14152
Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 4b575b4d8c..4a6f519231 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -475,13 +475,12 @@ ex_listdo(exarg_T *eap) { // Split the window, which will be 'nowinfixbuf', and set curwin to // that - if (win_split(0, 0) == FAIL) - return; // error message already given + (void)win_split(0, 0); if (curwin->w_p_wfb) { // Autocommands set 'winfixbuf' or sent us to another window - // with it set. Give up. + // with it set, or we failed to split the window. Give up. emsg(_(e_winfixbuf_cannot_go_to_buffer)); return; } |