From 8d3ef4b4e45b21904968694d53c013c2e2767d7a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 24 Aug 2024 17:01:23 -0400 Subject: [PATCH] Update emacs-bookmark.zsh --- emacs-bookmark.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'