diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-regs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 78cb209..5caff71 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -492,7 +492,8 @@ tui_data_item_window::rerender (WINDOW *handle, int field_width) (void) wstandout (handle); mvwaddnstr (handle, y, x, content.c_str (), field_width - 1); - waddstr (handle, n_spaces (field_width - content.size ())); + if (content.size () < field_width) + waddstr (handle, n_spaces (field_width - content.size ())); if (highlight) /* We ignore the return value, casting it to void in order to avoid |