summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-04-12 15:35:57 +0300
committerEli Zaretskii <eliz@gnu.org>2019-04-12 15:35:57 +0300
commit51196bbc5618a3741bd7bbed01ac76b25a2e6f9c (patch)
tree5a82d0c21872a35022bce50131ba0ae390d02072 /gdb/utils.c
parent3bbec4bd95396936f21dbb07b79d2b6286b4cfec (diff)
downloadbinutils-gdb-51196bbc5618a3741bd7bbed01ac76b25a2e6f9c.tar.gz
Another fix for GDB styling
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.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c4
1 files changed, 0 insertions, 4 deletions
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. */
}