mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
Return bool from find_win_for_buf #1023
This commit is contained in:

committed by
Justin M. Keyes

parent
8fa4abf15a
commit
3599a834d5
@@ -490,7 +490,7 @@ static void switch_to_win_for_buf(buf_T *buf,
|
||||
win_T *wp;
|
||||
tabpage_T *tp;
|
||||
|
||||
if (find_win_for_buf(buf, &wp, &tp) == FAIL
|
||||
if (!find_win_for_buf(buf, &wp, &tp)
|
||||
|| switch_win(save_curwinp, save_curtabp, wp, tp, true) == FAIL)
|
||||
switch_buffer(save_curbufp, buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user