Only set EL_PROMPT_ESC when existing

llvm-svn: 201023
This commit is contained in:
Sylvestre Ledru 2014-02-08 13:25:47 +00:00
parent 1070501586
commit 54e7a77690
1 changed files with 2 additions and 0 deletions

View File

@ -67,7 +67,9 @@ Editline::Editline (const char *prog, // prog can't be NULL
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)
{