coverity/13700: ignore failed win_split()

win_split() does EMSG for all failure cases, so we don't need to log it.

Easiest thing to do here is ignore the return value (otherwise we need
to do some cleanup and might require some refactoring. jumpto_tag() can
deal with a failed split, so it's no big deal.
This commit is contained in:
Nick Neisen
2018-05-16 19:17:56 -06:00
committed by Justin M. Keyes
parent b44b533ada
commit 32df42549a

View File

@@ -2407,8 +2407,8 @@ jumpto_tag (
/* If it was a CTRL-W CTRL-] command split window now. For ":tab tag"
* open a new tab page. */
if (postponed_split || cmdmod.tab != 0) {
win_split(postponed_split > 0 ? postponed_split : 0,
postponed_split_flags);
(void)win_split(postponed_split > 0 ? postponed_split : 0,
postponed_split_flags);
RESET_BINDING(curwin);
}