Skip to content

Commit

Permalink
remove accidental default expansion in single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MenkeTechnologies committed Oct 22, 2023
1 parent ab14c61 commit a4a83e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zpwrExpandApi.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function zpwrExpandParseWords(){
#zpwrLogDebug "first word partition before spelling = ...$ZPWR_VARS[firstword_partition]..."
#zpwrLogDebug "last word lbuf before spelling = ...$ZPWR_VARS[lastword_lbuffer]..."

lastWordAry=( ${(Az)${ZPWR_VARS[lastword_lbuffer]//[\[\]\{\}\(\)\']/}} )
lastWordAry=( ${(Az)${ZPWR_VARS[lastword_lbuffer]//[\[\]\{\}\(\)]/}} )
finalWord=${lastWordAry[-1]}
ZPWR_VARS[lastword_remove_special]=$finalWord

Expand Down

0 comments on commit a4a83e1

Please sign in to comment.