[bash] Persist history deletion when histappend is on
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
build / build (push) Has been cancelled
Test fzf on macOS / build (push) Has been cancelled

Fix #4764

Patch suggested by @bitraid.
This commit is contained in:
Junegunn Choi
2026-04-11 17:02:34 +09:00
parent 0eb2ae9f8b
commit f584cf38f7

View File

@@ -84,6 +84,10 @@ __fzf_history_delete() {
for offset in "${offsets[@]}"; do
builtin history -d "$offset"
done
if [[ ${#offsets[@]} -gt 0 ]] && shopt -q histappend; then
builtin history -w
fi
}
if command -v perl > /dev/null; then