Fix TUI source window drawing
authorHannes Domani <ssbssa@yahoo.de>
Mon, 21 Dec 2020 12:16:24 +0000 (13:16 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Tue, 5 Jan 2021 13:08:26 +0000 (14:08 +0100)
commitb5ff370e964a5a794a6b5791ca55ac103ebffe70
tree60efadcd9c0663eec43901bbf5174b08cd8b61b3
parentb281a04ff0a40440c7a2a0ab75ac0410cc1f53e8
Fix TUI source window drawing

The smaxrow and smaxcol parameters of prefresh are the bottom right corner
of the text area inclusive, not exclusive.

And if the source window grows bigger in height, the pad has to grow as
well.

gdb/ChangeLog:

2021-01-05  Hannes Domani  <ssbssa@yahoo.de>

PR tui/26927
* tui/tui-winsource.c (tui_source_window_base::refresh_window):
Fix source pad size in prefresh.
(tui_source_window_base::show_source_content): Grow source pad
if necessary.
gdb/ChangeLog
gdb/tui/tui-winsource.c