diff --git a/emacs-bookmark.zsh b/emacs-bookmark.zsh index f8c1365..81027f5 100644 --- a/emacs-bookmark.zsh +++ b/emacs-bookmark.zsh @@ -124,7 +124,7 @@ function bm { return 1 fi else - printf 'No such bookmark: "%s"\n' "${__bm_res[1]}" + printf 'No such bookmark: "%s"\n' "${1}" return 1 fi } @@ -200,6 +200,7 @@ function bmadd { res)")" [[ "${res}" = 'nil' ]] && printf 'Added bookmark "%s"\n' "${name}" \ || { printf '%s\n' "${res}"; return 1 } + __bm_update_bookmark_list } function _bmadd { _arguments ':file:_files' ':name'