Fix redisplay of the current line in GDB TUI mode
authorEli Zaretskii <eliz@gnu.org>
Sun, 17 Mar 2019 16:00:34 +0000 (18:00 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 17 Mar 2019 16:04:05 +0000 (18:04 +0200)
commit89ab4b06975ffc59c8a70d0cee7608ed26c836ab
tree9e2ca4a90cbefdd618231e8144514fd32634ad23
parent6731194b57bd4708502a05e682abc023c73b4aba
Fix redisplay of the current line in GDB TUI mode

Without this change, when the current line is longer than the source
window width, redisplaying that line overwrites the window frame and
also portions of the next line.

gdb/ChangeLog:
2019-03-17  Eli Zaretskii  <eliz@gnu.org>

* tui/tui-winsource.c (tui_set_is_exec_point_at): Call
tui_refill_source_window instead of tui_refresh_win, to update the
current execution line.  This fixes redisplay of the current line
when stepping through very long lines with "next" or "step".

(cherry picked from commit f7f0a12390fc514a5b7b38d1b23397d87532ce05)
gdb/ChangeLog
gdb/tui/tui-winsource.c