diff options
author | Marc Cornellà <marc.cornella@live.com> | 2016-01-18 15:16:48 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-01-18 15:16:48 +0100 |
commit | 40016afdc4c4ecdab6092e4f8c5c8648e27e5524 (patch) | |
tree | 950eba1cf043e27a8c140962a6a432aed717a058 /plugins/zsh-navigation-tools/n-list-input | |
parent | 87e782f91e5c8fb3c33b58cdda265e65122a2520 (diff) | |
parent | 77f93f61c5ee6fea9131a1791bd3b106b4b8da4f (diff) | |
download | zsh-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-input | 6 |
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 ;; |