From: Eli Zaretskii Date: Fri, 12 Apr 2019 12:35:57 +0000 (+0300) Subject: Another fix for GDB styling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51196bbc5618a3741bd7bbed01ac76b25a2e6f9c;p=binutils-gdb.git Another fix for GDB styling gdb/ChangeLog: 2019-04-12 Eli Zaretskii * utils.c (prompt_for_continue): Don't restore the styling at the end, as applied_style has the wrong value. This fixes styling in long lists of file names that are interrupted by the "Continue?" prompt. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 33bcef307e8..ed054a951f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-04-12 Eli Zaretskii + + * utils.c (prompt_for_continue): Don't restore the styling at the + end, as applied_style has the wrong value. This fixes styling in + long lists of file names that are interrupted by the "Continue?" + prompt. + 2019-04-12 Andrew Burgess * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC. diff --git a/gdb/utils.c b/gdb/utils.c index 700f54f9ad3..fa7a2674ef7 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1551,10 +1551,6 @@ prompt_for_continue (void) reinitialize_more_filter (); pagination_disabled_for_command = disable_pagination; - /* Restore the current styling. */ - if (can_emit_style_escape (gdb_stdout)) - emit_style_escape (applied_style); - dont_repeat (); /* Forget prev cmd -- CR won't repeat it. */ }