diff options
author | Sebastian Gniazdowski <sgniazdowski@gmail.com> | 2016-01-07 11:06:12 +0100 |
---|---|---|
committer | Sebastian Gniazdowski <sgniazdowski@gmail.com> | 2016-01-18 08:53:54 +0100 |
commit | 77f93f61c5ee6fea9131a1791bd3b106b4b8da4f (patch) | |
tree | 48ec36b466d4028d2db3395abe75edb408f5ce3c /plugins/zsh-navigation-tools/n-list-draw | |
parent | d30a501b1c6b8e8164b266318e26ce6d2e4719cf (diff) | |
download | zsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.tar.gz zsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.tar.bz2 zsh-77f93f61c5ee6fea9131a1791bd3b106b4b8da4f.zip |
znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history
Diffstat (limited to 'plugins/zsh-navigation-tools/n-list-draw')
-rw-r--r-- | plugins/zsh-navigation-tools/n-list-draw | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/zsh-navigation-tools/n-list-draw b/plugins/zsh-navigation-tools/n-list-draw index 1b2571fbd..2f8b1d0d5 100644 --- a/plugins/zsh-navigation-tools/n-list-draw +++ b/plugins/zsh-navigation-tools/n-list-draw @@ -98,7 +98,7 @@ shift 7 integer max_text_len=page_width-x_offset [ "$bold" = "0" ] && bold="" || bold="+bold" -[[ "$active_text" = "underline" || "$active_text" = "reverse" ]] || active_text="reverse" +[[ "$active_text" = "underline" || "$active_text" = "reverse" ]] || local active_text="reverse" # With Linux terminal underline won't work properly [ "$TERM" = "linux" ] && active_text="reverse" |