Skip to content

Commit 26f4ca6

Browse files
committed
Escape opening square brackets in IPythonHistory
1 parent 5af8ab8 commit 26f4ca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ftplugin/python/ipy.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ pattern = vim.eval('a:pattern')
344344
if pattern:
345345
if not pattern.startswith('*') and not pattern.endswith('*'):
346346
pattern = '*{0}*'.format(pattern)
347+
pattern = pattern.replace('[', '[[]')
347348
else:
348349
pattern = None
349350
unique = vim.eval('get(g:, "ipython_history_unique", "")')

0 commit comments

Comments
 (0)