summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-list-input
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-input
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-input')
-rw-r--r--plugins/zsh-navigation-tools/n-list-input6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/zsh-navigation-tools/n-list-input b/plugins/zsh-navigation-tools/n-list-input
index 380acdc00..957cd5a0b 100644
--- a/plugins/zsh-navigation-tools/n-list-input
+++ b/plugins/zsh-navigation-tools/n-list-input
@@ -44,7 +44,7 @@ case "$key" in
[ "$current_idx" -lt "$last_element" ] && current_idx=current_idx+1;
_nlist_compute_first_to_show_idx
;;
- (PPAGE)
+ (PPAGE|$'\b'|$'\C-?'|BACKSPACE)
current_idx=current_idx-page_height
[ "$current_idx" -lt 1 ] && current_idx=1;
_nlist_compute_first_to_show_idx
@@ -72,7 +72,7 @@ case "$key" in
current_idx=last_element
_nlist_compute_first_to_show_idx
;;
- ($'\n')
+ ($'\n'|ENTER)
# Is that element selectable?
# Check for this only when there is no search
if [[ "$NLIST_SEARCH_BUFFER" != "" || "$NLIST_IS_UNIQ_MODE" -eq 1 ||
@@ -137,7 +137,7 @@ esac
else
case "$key" in
- ($'\n')
+ ($'\n'|ENTER)
search=0
_nlist_cursor_visibility 0
;;