From 7c9e20998f9a16137523ccde733b24fd2fbf84e2 Mon Sep 17 00:00:00 2001 From: Nikolaos Kakouros Date: Sun, 27 Feb 2022 01:05:03 +0000 Subject: [PATCH] Fixes closing pair for quotes --- autopairs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autopairs.sh b/autopairs.sh index 60d0927..ecf3d9f 100644 --- a/autopairs.sh +++ b/autopairs.sh @@ -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