mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-13 03:11:08 +08:00
[bash] Persist history deletion when histappend is on
Fix #4764 Patch suggested by @bitraid.
This commit is contained in:
@@ -84,6 +84,10 @@ __fzf_history_delete() {
|
|||||||
for offset in "${offsets[@]}"; do
|
for offset in "${offsets[@]}"; do
|
||||||
builtin history -d "$offset"
|
builtin history -d "$offset"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ${#offsets[@]} -gt 0 ]] && shopt -q histappend; then
|
||||||
|
builtin history -w
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if command -v perl > /dev/null; then
|
if command -v perl > /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user