From 7054ceb6a4756e0d2f85374a8048994e5b8ed325 Mon Sep 17 00:00:00 2001 From: Harris Date: Tue, 28 Nov 2023 11:03:19 +0800 Subject: [PATCH] Update vimsnippets.py to fix the escape char issue --- pythonx/vimsnippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/vimsnippets.py b/pythonx/vimsnippets.py index eceb83c5b..68b430e44 100644 --- a/pythonx/vimsnippets.py +++ b/pythonx/vimsnippets.py @@ -14,7 +14,7 @@ def complete(tab, opts): :return: a string that match with tab """ el = [x for x in tab] - pat = "".join(list(map(lambda x: x + "\w*" if re.match("\w", x) else x, + pat = "".join(list(map(lambda x: x + r"\w*" if re.match(r"\w", x) else x, el))) try: opts = [x for x in opts if re.search(pat, x, re.IGNORECASE)]