Skip to content

Commit 0589ec2

Browse files
committed
Fix error when null bytes exist in metadata
1 parent 67e5046 commit 0589ec2

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
@@ -266,6 +266,7 @@ def process_matches(matches, metadata, result):
266266
except ValueError:
267267
pass
268268
for c, m in zip(completions, metadata):
269+
m = m.replace('\0', '^@') # vim can't handle null bytes in Python strings
269270
result.c, result.m = c, m
270271
if 'CALLSIG' in m:
271272
result.split = m.partition('CALLSIG')

0 commit comments

Comments
 (0)