aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-05-31 14:02:54 -0600
committerTom Tromey <tom@tromey.com>2024-06-03 11:22:53 -0600
commit7c493aa7e73e6718790f6b4a01a39ff4146cba4a (patch)
tree584e7339af45acf8119ab6629380f66679496167 /gdb/tui
parentfc3577ef9f3338a2b957a6d90caa76be2ef186f8 (diff)
downloadgdb-7c493aa7e73e6718790f6b4a01a39ff4146cba4a.zip
gdb-7c493aa7e73e6718790f6b4a01a39ff4146cba4a.tar.gz
gdb-7c493aa7e73e6718790f6b4a01a39ff4146cba4a.tar.bz2
Remove one call to can_box from TUI
This removes a call to can_box from tui_source_window_base::show_source_content. can_box will always return true here. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-winsource.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 61c8e00..e68efad 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -406,15 +406,9 @@ tui_source_window_base::show_source_content ()
for (int lineno = 0; lineno < m_content.size (); lineno++)
show_source_line (lineno);
- if (can_box ())
- {
- /* Calling check_and_display_highlight_if_needed will call refresh_window
- (so long as the current window can be boxed), which will ensure that
- the newly loaded window content is copied to the screen. */
- check_and_display_highlight_if_needed ();
- }
- else
- refresh_window ();
+ /* Calling check_and_display_highlight_if_needed will call
+ refresh_window. */
+ check_and_display_highlight_if_needed ();
}
tui_source_window_base::tui_source_window_base ()