diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 11:32:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 11:32:26 +0200 |
commit | 0ee0b658b3b651d952965dd85a7b1dd0ac5312dc (patch) | |
tree | 52b80bfb53d51f196155d79798e2bbd8ee895fc1 | |
parent | 25393fb55e515cab25bb932420813f2c5bbd18f9 (diff) | |
download | busybox-w32-0ee0b658b3b651d952965dd85a7b1dd0ac5312dc.tar.gz busybox-w32-0ee0b658b3b651d952965dd85a7b1dd0ac5312dc.tar.bz2 busybox-w32-0ee0b658b3b651d952965dd85a7b1dd0ac5312dc.zip |
hush: small speedup in handle_changed_special_names()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index a103e8169..ce341632a 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2253,10 +2253,10 @@ static const char* FAST_FUNC get_local_var_value(const char *name) | |||
2253 | static void handle_changed_special_names(const char *name, unsigned name_len) | 2253 | static void handle_changed_special_names(const char *name, unsigned name_len) |
2254 | { | 2254 | { |
2255 | if (ENABLE_HUSH_INTERACTIVE && ENABLE_FEATURE_EDITING_FANCY_PROMPT | 2255 | if (ENABLE_HUSH_INTERACTIVE && ENABLE_FEATURE_EDITING_FANCY_PROMPT |
2256 | && G_interactive_fd | ||
2257 | && name_len == 3 && name[0] == 'P' && name[1] == 'S' | 2256 | && name_len == 3 && name[0] == 'P' && name[1] == 'S' |
2258 | ) { | 2257 | ) { |
2259 | cmdedit_update_prompt(); | 2258 | if (G_interactive_fd) |
2259 | cmdedit_update_prompt(); | ||
2260 | return; | 2260 | return; |
2261 | } | 2261 | } |
2262 | 2262 | ||