summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/nc-widgets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c
index 5592db9..f821929 100644
--- a/ui/ncurses/nc-widgets.c
+++ b/ui/ncurses/nc-widgets.c
@@ -877,6 +877,10 @@ void widget_move(struct nc_widget *widget, int y, int x)
widget->x = x;
widget->y = y;
+
+ if (x + widget->width > COLS)
+ pb_debug("%s: Widget at %d,%d runs over pad! (%d)", __func__,
+ y, x, x + widget->width);
}
int widget_height(struct nc_widget *widget)
OpenPOWER on IntegriCloud