File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ _abbr_get_available_abbreviation() {
1375
1375
1376
1376
if [[ -z $ABBR_UNUSED_ABBREVIATION ]]; then
1377
1377
ABBR_UNUSED_ABBREVIATION_PREFIX=
1378
- _abbr_get_available_abbreviation:regular:prefixed $expansion 0
1378
+ _abbr_get_available_abbreviation:regular:prefixed $expansion 1
1379
1379
fi
1380
1380
1381
1381
if [[ -z $ABBR_UNUSED_ABBREVIATION ]]; then
@@ -1423,7 +1423,7 @@ _abbr_get_available_abbreviation() {
1423
1423
1424
1424
words=( ${(z)LBUFFER} )
1425
1425
while [[ -z $ABBR_UNUSED_ABBREVIATION ]] && (( i < ${# words} )) ; do
1426
- expansion=" ${words: $i } "
1426
+ expansion=${words: $i }
1427
1427
ABBR_UNUSED_ABBREVIATION=${(Q)${(k)ABBR_GLOBAL_SESSION_ABBREVIATIONS[(re)${(qqq)expansion}]} }
1428
1428
(( i++ ))
1429
1429
done
@@ -1440,7 +1440,7 @@ _abbr_get_available_abbreviation() {
1440
1440
i=0
1441
1441
words=( ${(z)LBUFFER} )
1442
1442
while [[ -z $ABBR_UNUSED_ABBREVIATION ]] && (( i < ${# words} )) ; do
1443
- expansion=" ${words: $i } "
1443
+ expansion=${words: $i }
1444
1444
ABBR_UNUSED_ABBREVIATION=${(Q)${(k)ABBR_GLOBAL_USER_ABBREVIATIONS[(re)${(qqq)expansion}]} }
1445
1445
(( i++ ))
1446
1446
done
You can’t perform that action at this time.
0 commit comments