Skip to content

Commit 7c9e209

Browse files
committed
Fixes closing pair for quotes
1 parent c131a81 commit 7c9e209

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autopairs.sh

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ function __autopair() {
2626

2727
if [[ "$((num_of_char % 2))" -eq 1 ]]; then
2828
s+="$typed_char"
29+
elif [[ "$cursor_char" == "$closing_char" ]]; then
30+
:
2931
else
3032
s+="$typed_char$typed_char"
3133
fi

0 commit comments

Comments
 (0)