mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
committed by
Justin M. Keyes
parent
b44b533ada
commit
32df42549a
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user