hush: small speedup in handle_changed_special_names()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
25393fb55e
commit
0ee0b658b3
@ -2253,9 +2253,9 @@ static const char* FAST_FUNC get_local_var_value(const char *name)
|
||||
static void handle_changed_special_names(const char *name, unsigned name_len)
|
||||
{
|
||||
if (ENABLE_HUSH_INTERACTIVE && ENABLE_FEATURE_EDITING_FANCY_PROMPT
|
||||
&& G_interactive_fd
|
||||
&& name_len == 3 && name[0] == 'P' && name[1] == 'S'
|
||||
) {
|
||||
if (G_interactive_fd)
|
||||
cmdedit_update_prompt();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user