about summary refs log tree commit diff stats
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 39e6500d..2ebf7a31 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -748,6 +748,9 @@ win_refresh_with_subwin(ProfWin *window)
         subwin_cols = win_occpuants_cols();
     } else if (window->type == WIN_CONSOLE) {
         subwin_cols = win_roster_cols();
+    } else {
+        // Other window types don't support subwindows, we shouldn't be here
+        return;
     }
 
     pnoutrefresh(layout->base.win, layout->base.y_pos, 0, row_start, 0, row_end, (cols-subwin_cols)-1);