mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Better fix for phpdbg + libedit
- fix include - disable coloured prompt only with libedit
This commit is contained in:
parent
86bafec836
commit
98d41dfc9d
2 changed files with 5 additions and 2 deletions
|
@ -64,10 +64,13 @@
|
|||
# include "TSRM.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)
|
||||
#ifdef LIBREADLINE
|
||||
# include <readline/readline.h>
|
||||
# include <readline/history.h>
|
||||
#endif
|
||||
#ifdef HAVE_LIBEDIT
|
||||
# include <editline/readline.h>
|
||||
#endif
|
||||
|
||||
#include "phpdbg_lexer.h"
|
||||
#include "phpdbg_cmd.h"
|
||||
|
|
|
@ -400,7 +400,7 @@ PHPDBG_API const char *phpdbg_get_prompt(TSRMLS_D) /* {{{ */
|
|||
}
|
||||
|
||||
/* create cached prompt */
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
#ifndef HAVE_LIBEDIT
|
||||
/* TODO: libedit doesn't seems to support coloured prompt */
|
||||
if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) {
|
||||
asprintf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue