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