Update emacs-bookmark.zsh

This commit is contained in:
Alexander Rosenberg 2024-08-24 17:01:23 -04:00
parent 7f7aa9def4
commit 8d3ef4b4e4
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -124,7 +124,7 @@ function bm {
return 1 return 1
fi fi
else else
printf 'No such bookmark: "%s"\n' "${__bm_res[1]}" printf 'No such bookmark: "%s"\n' "${1}"
return 1 return 1
fi fi
} }
@ -200,6 +200,7 @@ function bmadd {
res)")" res)")"
[[ "${res}" = 'nil' ]] && printf 'Added bookmark "%s"\n' "${name}" \ [[ "${res}" = 'nil' ]] && printf 'Added bookmark "%s"\n' "${name}" \
|| { printf '%s\n' "${res}"; return 1 } || { printf '%s\n' "${res}"; return 1 }
__bm_update_bookmark_list
} }
function _bmadd { function _bmadd {
_arguments ':file:_files' ':name' _arguments ':file:_files' ':name'