]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Another fix for GDB styling
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2019 12:35:57 +0000 (15:35 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2019 12:35:57 +0000 (15:35 +0300)
gdb/ChangeLog:
2019-04-12  Eli Zaretskii  <eliz@gnu.org>

* 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.

gdb/ChangeLog
gdb/utils.c

index 33bcef307e83d63916385677541e59afcca3c590..ed054a951f7a35322e96fa98ea178d94e780b595 100644 (file)
@@ -1,3 +1,10 @@
+2019-04-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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  <andrew.burgess@embecosm.com>
 
        * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
index 700f54f9ad32762dedff424887efdd25ac706640..fa7a2674ef7cce0923ae9bec84122923bea2a6c8 100644 (file)
@@ -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.  */
 }