Skip to content

Commit ec4ff7e

Browse files
zhuzhzhlpil
authored andcommitted
Update vimsnippets.py to fix the escape char issue
1 parent 2ed3a73 commit ec4ff7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonx/vimsnippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def complete(tab, opts):
1414
:return: a string that match with tab
1515
"""
1616
el = [x for x in tab]
17-
pat = "".join(list(map(lambda x: x + "\w*" if re.match("\w", x) else x,
17+
pat = "".join(list(map(lambda x: x + r"\w*" if re.match(r"\w", x) else x,
1818
el)))
1919
try:
2020
opts = [x for x in opts if re.search(pat, x, re.IGNORECASE)]

0 commit comments

Comments
 (0)