# HG changeset patch # User John W. Eaton # Date 1558704149 14400 # Node ID 79783f3e201799d7527f6f8e20858897fad515ce # Parent 1e5a1e15fa5611ff89084aba55a2219c04814ea6 use rl_display_prompt instead of rl_prompt diff -r 1e5a1e15fa56 -r 79783f3e2017 command-window.cpp --- a/command-window.cpp Thu May 23 18:41:04 2019 -0400 +++ b/command-window.cpp Fri May 24 09:22:29 2019 -0400 @@ -223,7 +223,7 @@ parser& parser = interp.get_parser (); std::string line = rl_line_buffer ? rl_line_buffer : ""; - std::string prompt = (rl_prompt && parser.beg_of_stmt ()) ? rl_prompt : ""; + std::string prompt = parser.beg_of_stmt () ? rl_display_prompt : ""; insert_line (prompt, line); @@ -348,7 +348,7 @@ { erase_line (); - std::string prompt = rl_prompt ? rl_prompt : ""; + std::string prompt = rl_display_prompt; insert_line (prompt, entry->line); }