summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-list
diff options
context:
space:
mode:
authorpsprint <sgniazdowski@gmail.com>2016-06-18 11:48:21 +0200
committerMarc Cornellà <marc.cornella@live.com>2016-06-18 11:48:21 +0200
commitd012402dada1ec7d8796f2f4b04744d817137b4d (patch)
tree5abc9ea93743ca91d3a608e2914249c44d88bca6 /plugins/zsh-navigation-tools/n-list
parentd7c06131a251ec9e9c715383f33eec977c72b6ea (diff)
downloadzsh-d012402dada1ec7d8796f2f4b04744d817137b4d.tar.gz
zsh-d012402dada1ec7d8796f2f4b04744d817137b4d.tar.bz2
zsh-d012402dada1ec7d8796f2f4b04744d817137b4d.zip
znt: update to v2.2.1 (#5174)
Diffstat (limited to 'plugins/zsh-navigation-tools/n-list')
-rw-r--r--plugins/zsh-navigation-tools/n-list5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/zsh-navigation-tools/n-list b/plugins/zsh-navigation-tools/n-list
index d3a8da302..f3d2e5b3e 100644
--- a/plugins/zsh-navigation-tools/n-list
+++ b/plugins/zsh-navigation-tools/n-list
@@ -445,7 +445,10 @@ while (( 1 )); do
[ "$border" = "1" ] && zcurses border main
- local top_msg=" F1-change view, ${(C)ZSH_NAME} $ZSH_VERSION, shell level $SHLVL "
+ local top_msg=" ${(C)ZSH_NAME} $ZSH_VERSION, shell level $SHLVL "
+ if [[ "${NLIST_ENABLED_EVENTS[(r)F1]}" = "F1" ]]; then
+ top_msg=" F1-change view,$top_msg"
+ fi
zcurses move main 0 $(( term_width / 2 - $#top_msg / 2 ))
zcurses string main $top_msg