summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-list-draw
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-01-18 15:16:48 +0100
committerMarc Cornellà <marc.cornella@live.com>2016-01-18 15:16:48 +0100
commit40016afdc4c4ecdab6092e4f8c5c8648e27e5524 (patch)
tree950eba1cf043e27a8c140962a6a432aed717a058 /plugins/zsh-navigation-tools/n-list-draw
parent87e782f91e5c8fb3c33b58cdda265e65122a2520 (diff)
parent77f93f61c5ee6fea9131a1791bd3b106b4b8da4f (diff)
downloadzsh-40016afdc4c4ecdab6092e4f8c5c8648e27e5524.tar.gz
zsh-40016afdc4c4ecdab6092e4f8c5c8648e27e5524.tar.bz2
zsh-40016afdc4c4ecdab6092e4f8c5c8648e27e5524.zip
Merge pull request #4755 from psprint/master
znt: optimizations for zsh<=5.2
Diffstat (limited to 'plugins/zsh-navigation-tools/n-list-draw')
-rw-r--r--plugins/zsh-navigation-tools/n-list-draw2
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"