[gdb/tui] Use more box_width in tui-regs.c
authorTom de Vries <tdevries@suse.de>
Sat, 16 Dec 2023 08:23:38 +0000 (09:23 +0100)
committerTom de Vries <tdevries@suse.de>
Sat, 16 Dec 2023 08:23:38 +0000 (09:23 +0100)
commitbebb0dd44b98f5b6555cb75389b7b14deed9550e
tree504a8de719a33d4dbde765276c10357f93ea5556
parent9846e9c11081a1f268c867bd99b6354680d760f6
[gdb/tui] Use more box_width in tui-regs.c

While experimenting with can_box () == false by default, I noticed two places
in tui-regs.c where we can replace a hardcoded 1 with box_width ().

It also turned out to be necessary to set scrollok to false, otherwise writing
the last char of the last line with register info will cause a scroll.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/tui/tui-regs.c