diff options
author | psprint <sgniazdowski@gmail.com> | 2016-06-18 11:48:21 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-06-18 11:48:21 +0200 |
commit | d012402dada1ec7d8796f2f4b04744d817137b4d (patch) | |
tree | 5abc9ea93743ca91d3a608e2914249c44d88bca6 /plugins/zsh-navigation-tools/n-history | |
parent | d7c06131a251ec9e9c715383f33eec977c72b6ea (diff) | |
download | zsh-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-history')
-rw-r--r-- | plugins/zsh-navigation-tools/n-history | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/zsh-navigation-tools/n-history b/plugins/zsh-navigation-tools/n-history index 68370f6e5..af475dcb8 100644 --- a/plugins/zsh-navigation-tools/n-history +++ b/plugins/zsh-navigation-tools/n-history @@ -157,7 +157,7 @@ _nhistory_generate_most_frequent() { vk+="$v"$'\t'"$k" done - print -rl "$title" "${(On)vk[@]}" > "$most_frequent_db" + print -rl -- "$title" "${(On)vk[@]}" > "$most_frequent_db" } # Load configuration @@ -337,16 +337,16 @@ if [ "$REPLY" -gt 0 ]; then selected="$reply[REPLY]" # ZLE? if [ "${(t)CURSOR}" = "integer-local-special" ]; then - zle redisplay - zle kill-buffer + zle .redisplay + zle .kill-buffer LBUFFER+="$selected" # Append to private history local newline=$'\n' selected="${selected//$newline/\\$newline}" - [ "$active_view" = "0" ] && print -r "$selected" >> "$private_history_db" + [ "$active_view" = "0" ] && print -r -- "$selected" >> "$private_history_db" else - print -zr "$selected" + print -zr -- "$selected" fi else [ "${(t)CURSOR}" = "integer-local-special" ] && zle redisplay |