FS:353: correct #if check for libedit function capability

This commit is contained in:
Brian West 2014-03-24 16:17:59 -05:00
parent 0b9e5c82a5
commit c7bd862e9a
1 changed files with 2 additions and 2 deletions

View File

@ -1512,7 +1512,7 @@ int main(int argc, char *argv[])
}
bare_prompt_str_len = (int)strlen(bare_prompt_str);
if (feature_level) {
#ifdef HAVE_DECL_EL_PROMPT_ESC
#if HAVE_DECL_EL_PROMPT_ESC
snprintf(prompt_str, sizeof(prompt_str), "\1%s\1%s\1%s\1", prompt_color, bare_prompt_str, input_text_color);
#else
snprintf(prompt_str, sizeof(prompt_str), "%s%s%s", prompt_color, bare_prompt_str, input_text_color);
@ -1578,7 +1578,7 @@ int main(int argc, char *argv[])
#ifdef HAVE_LIBEDIT
el = el_init(__FILE__, stdin, stdout, stderr);
#ifdef HAVE_DECL_EL_PROMPT_ESC
#if HAVE_DECL_EL_PROMPT_ESC
el_set(el, EL_PROMPT_ESC, &prompt, '\1');
#else
el_set(el, EL_PROMPT, &prompt);