Fix emacs-bookmark.zsh (again)
This commit is contained in:
parent
aab934f5a1
commit
79695758a5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user