Fix builtin "read" up-arrow search skipping first entry

Fixes #6892
This commit is contained in:
Johannes Altmanninger
2020-04-14 01:30:54 +02:00
parent de9f4cb252
commit 17ed8d25a4

View File

@@ -203,6 +203,7 @@ static int read_interactive(parser_t &parser, wcstring &buff, int nchars, bool s
// Don't keep history
reader_push(parser, L"");
reader_get_history()->resolve_pending();
reader_set_left_prompt(prompt);
reader_set_right_prompt(right_prompt);