From 79695758a50ea6c60b78ab3efcca35d8a3e25366 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 30 Aug 2024 14:06:11 -0700 Subject: [PATCH] Fix emacs-bookmark.zsh (again) --- emacs-bookmark.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs-bookmark.zsh b/emacs-bookmark.zsh index 5809224..f1a04b9 100644 --- a/emacs-bookmark.zsh +++ b/emacs-bookmark.zsh @@ -151,6 +151,7 @@ function _bm { for ((i = 1; i < ${#__bm_bookmark_cache}; i+=4)); do compadd -q -S '/' "${__bm_bookmark_cache[${i}]}" done + printf '' # I don't know why, but this fixes things else __bm_bookmark_location "${arg}" if [[ -d "${__bm_res[1]}" ]]; then @@ -170,7 +171,7 @@ function _bm { prefix+='/' fi compset -P "${(b)prefix}" - for file in "${pre_path}${search}"*; do + for file in "${pre_path}"*; do compadd -W "${pre_path}" -f "${file:t}" done fi