Skip to content

Commit

Permalink
Fixes closing pair for quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nkakouros committed Feb 27, 2022
1 parent c131a81 commit 7c9e209
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autopairs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ function __autopair() {

if [[ "$((num_of_char % 2))" -eq 1 ]]; then
s+="$typed_char"
elif [[ "$cursor_char" == "$closing_char" ]]; then
:
else
s+="$typed_char$typed_char"
fi
Expand Down

0 comments on commit 7c9e209

Please sign in to comment.