File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -318,14 +318,15 @@ PHPDBG_API const char *phpdbg_get_prompt(void) /* {{{ */
318
318
}
319
319
320
320
/* create cached prompt */
321
+
321
322
#if !defined(HAVE_LIBEDIT ) || (defined(HAVE_LIBEDIT ) && defined(RL_PROMPT_START_IGNORE ) && defined(RL_PROMPT_END_IGNORE ))
322
- if ((PHPDBG_G (flags ) & PHPDBG_IS_COLOURED )) {
323
- ZEND_IGNORE_VALUE (asprintf (& PHPDBG_G (prompt )[1 ],
324
323
# if defined(HAVE_LIBEDIT ) && defined(RL_PROMPT_START_IGNORE ) && defined(RL_PROMPT_END_IGNORE )
325
- "\1\033[%sm\2%s\1\033[0m\2 " ,
324
+ # define PHPDBG_PROMPT "\1\033[%sm\2%s\1\033[0m\2 "
326
325
# else
327
- "\033[%sm%s\033[0m " ,
326
+ # define PHPDBG_PROMPT "\033[%sm%s\033[0m "
328
327
# endif
328
+ if ((PHPDBG_G (flags ) & PHPDBG_IS_COLOURED )) {
329
+ ZEND_IGNORE_VALUE (asprintf (& PHPDBG_G (prompt )[1 ], PHPDBG_PROMPT ,
329
330
PHPDBG_G (colors )[PHPDBG_COLOR_PROMPT ]-> code ,
330
331
PHPDBG_G (prompt )[0 ]));
331
332
} else
You can’t perform that action at this time.
0 commit comments