Fix emacs-bookmark.zsh (again)

This commit is contained in:
Alexander Rosenberg 2024-08-30 14:06:11 -07:00
parent aab934f5a1
commit 79695758a5
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -151,6 +151,7 @@ function _bm {
for ((i = 1; i < ${#__bm_bookmark_cache}; i+=4)); do for ((i = 1; i < ${#__bm_bookmark_cache}; i+=4)); do
compadd -q -S '/' "${__bm_bookmark_cache[${i}]}" compadd -q -S '/' "${__bm_bookmark_cache[${i}]}"
done done
printf '' # I don't know why, but this fixes things
else else
__bm_bookmark_location "${arg}" __bm_bookmark_location "${arg}"
if [[ -d "${__bm_res[1]}" ]]; then if [[ -d "${__bm_res[1]}" ]]; then
@ -170,7 +171,7 @@ function _bm {
prefix+='/' prefix+='/'
fi fi
compset -P "${(b)prefix}" compset -P "${(b)prefix}"
for file in "${pre_path}${search}"*; do for file in "${pre_path}"*; do
compadd -W "${pre_path}" -f "${file:t}" compadd -W "${pre_path}" -f "${file:t}"
done done
fi fi