mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
correct set prompt if CONFIG_ASH_EXPAND_PRMT enabled, small automatic space->tabs convert by my personal editor
This commit is contained in:
parent
5f46010ab7
commit
11d7c52912
@ -6016,10 +6016,19 @@ pfgets(char *line, int len)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_FEATURE_COMMAND_EDITING
|
#ifdef CONFIG_FEATURE_COMMAND_EDITING
|
||||||
|
#ifdef CONFIG_ASH_EXPAND_PRMT
|
||||||
|
static char *cmdedit_prompt;
|
||||||
|
#else
|
||||||
static const char *cmdedit_prompt;
|
static const char *cmdedit_prompt;
|
||||||
|
#endif
|
||||||
static inline void putprompt(const char *s)
|
static inline void putprompt(const char *s)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_ASH_EXPAND_PRMT
|
||||||
|
free(cmdedit_prompt);
|
||||||
|
cmdedit_prompt = bb_xstrdup(s);
|
||||||
|
#else
|
||||||
cmdedit_prompt = s;
|
cmdedit_prompt = s;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static inline void putprompt(const char *s)
|
static inline void putprompt(const char *s)
|
||||||
|
Loading…
Reference in New Issue
Block a user