mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
znt: update to v2.2.1 (#5174)
This commit is contained in:
parent
d7c06131a2
commit
d012402dad
5 changed files with 52 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue