Make isearch change readline prompt in TUI
authorTom Tromey <tom@tromey.com>
Wed, 20 Nov 2019 23:39:44 +0000 (16:39 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2019 15:49:52 +0000 (08:49 -0700)
commit364d710448e607e4ae9cb338583179dd6e734f0b
tree87c61fb765b44700eb9b71a832c4f87a51f9458d
parentcda8d785b37cbcbe286675c48527f0b3e6233809
Make isearch change readline prompt in TUI

PR tui/23619 points out that isearch changes the prompt in the CLI gdb
(and in Bash) -- but not in the TUI.  This turns out to be easily
fixed by removing tui_rl_saved_prompt and instead using the prompt
that readline computes.

This is stored in rl_display_prompt, which according to git was added
in readline 6.2.

gdb/ChangeLog
2019-12-20  Tom Tromey  <tom@tromey.com>

PR tui/23619:
* tui/tui-io.c (tui_rl_saved_prompt): Remove.
(tui_redisplay_readline): Use rl_display_prompt.
(tui_prep_terminal): Update.

Change-Id: Iae97e9776a5540bbe52c73b05e4707941d9cd11a
gdb/ChangeLog
gdb/tui/tui-io.c
This page took 0.023719 seconds and 4 git commands to generate.