[Lldb-commits] [lldb] r201023 - Only set EL_PROMPT_ESC when existing
Sylvestre Ledru
sylvestre at debian.org
Sat Feb 8 05:25:49 PST 2014
Author: sylvestre
Date: Sat Feb 8 07:25:47 2014
New Revision: 201023
URL: http://llvm.org/viewvc/llvm-project?rev=201023&view=rev
Log:
Only set EL_PROMPT_ESC when existing
Modified:
lldb/trunk/source/Host/common/Editline.cpp
Modified: lldb/trunk/source/Host/common/Editline.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Editline.cpp?rev=201023&r1=201022&r2=201023&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Editline.cpp (original)
+++ lldb/trunk/source/Host/common/Editline.cpp Sat Feb 8 07:25:47 2014
@@ -67,7 +67,9 @@ Editline::Editline (const char *prog,
assert (m_editline);
::el_set (m_editline, EL_CLIENTDATA, this);
+#idef EL_PROMPT_ESC
::el_set (m_editline, EL_PROMPT_ESC, GetPromptCallback, k_prompt_escape_char);
+#endif
::el_set (m_editline, EL_EDITOR, "emacs");
if (m_history)
{
More information about the lldb-commits
mailing list