mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(win_close): suppress clang "Dereference of NULL pointer"
This commit is contained in:
@@ -2743,6 +2743,7 @@ int win_close(win_T *win, bool free_buf, bool force)
|
|||||||
|
|
||||||
if (win->w_floating) {
|
if (win->w_floating) {
|
||||||
ui_comp_remove_grid(&win->w_grid_alloc);
|
ui_comp_remove_grid(&win->w_grid_alloc);
|
||||||
|
assert(first_tabpage != NULL); // suppress clang "Dereference of NULL pointer"
|
||||||
if (win->w_float_config.external) {
|
if (win->w_float_config.external) {
|
||||||
for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next) {
|
for (tabpage_T *tp = first_tabpage; tp != NULL; tp = tp->tp_next) {
|
||||||
if (tp == curtab) {
|
if (tp == curtab) {
|
||||||
|
Reference in New Issue
Block a user