Skip to content

Commit 116a592

Browse files
committed
fix(reminders): regression for 154 fix. plus unnecessary unintentionally-committed changes
1 parent aa2dc86 commit 116a592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zsh-abbr.zsh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ _abbr_get_available_abbreviation() {
13751375

13761376
if [[ -z $ABBR_UNUSED_ABBREVIATION ]]; then
13771377
ABBR_UNUSED_ABBREVIATION_PREFIX=
1378-
_abbr_get_available_abbreviation:regular:prefixed $expansion 0
1378+
_abbr_get_available_abbreviation:regular:prefixed $expansion 1
13791379
fi
13801380

13811381
if [[ -z $ABBR_UNUSED_ABBREVIATION ]]; then
@@ -1423,7 +1423,7 @@ _abbr_get_available_abbreviation() {
14231423

14241424
words=( ${(z)LBUFFER} )
14251425
while [[ -z $ABBR_UNUSED_ABBREVIATION ]] && (( i < ${#words} )); do
1426-
expansion="${words:$i}"
1426+
expansion=${words:$i}
14271427
ABBR_UNUSED_ABBREVIATION=${(Q)${(k)ABBR_GLOBAL_SESSION_ABBREVIATIONS[(re)${(qqq)expansion}]}}
14281428
(( i++ ))
14291429
done
@@ -1440,7 +1440,7 @@ _abbr_get_available_abbreviation() {
14401440
i=0
14411441
words=( ${(z)LBUFFER} )
14421442
while [[ -z $ABBR_UNUSED_ABBREVIATION ]] && (( i < ${#words} )); do
1443-
expansion="${words:$i}"
1443+
expansion=${words:$i}
14441444
ABBR_UNUSED_ABBREVIATION=${(Q)${(k)ABBR_GLOBAL_USER_ABBREVIATIONS[(re)${(qqq)expansion}]}}
14451445
(( i++ ))
14461446
done

0 commit comments

Comments
 (0)