mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
window: pvs/v1071
"void" cast unused return value of win_comp_pos().
This commit is contained in:
@@ -2528,7 +2528,7 @@ int win_close(win_T *win, bool free_buf)
|
|||||||
// only resize that frame. Otherwise resize all windows.
|
// only resize that frame. Otherwise resize all windows.
|
||||||
win_equal(curwin, curwin->w_frame->fr_parent == win_frame, dir);
|
win_equal(curwin, curwin->w_frame->fr_parent == win_frame, dir);
|
||||||
} else {
|
} else {
|
||||||
win_comp_pos();
|
(void)win_comp_pos();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6296,9 +6296,10 @@ restore_snapshot (
|
|||||||
&& curtab->tp_snapshot[idx]->fr_height == topframe->fr_height
|
&& curtab->tp_snapshot[idx]->fr_height == topframe->fr_height
|
||||||
&& check_snapshot_rec(curtab->tp_snapshot[idx], topframe) == OK) {
|
&& check_snapshot_rec(curtab->tp_snapshot[idx], topframe) == OK) {
|
||||||
wp = restore_snapshot_rec(curtab->tp_snapshot[idx], topframe);
|
wp = restore_snapshot_rec(curtab->tp_snapshot[idx], topframe);
|
||||||
win_comp_pos();
|
(void)win_comp_pos();
|
||||||
if (wp != NULL && close_curwin)
|
if (wp != NULL && close_curwin) {
|
||||||
win_goto(wp);
|
win_goto(wp);
|
||||||
|
}
|
||||||
redraw_all_later(NOT_VALID);
|
redraw_all_later(NOT_VALID);
|
||||||
}
|
}
|
||||||
clear_snapshot(curtab, idx);
|
clear_snapshot(curtab, idx);
|
||||||
|
Reference in New Issue
Block a user