@@ -269,16 +269,16 @@ def process_matches(matches, metadata, result):
269
269
for c , m in zip (completions, metadata):
270
270
# vim can't handle null bytes in Python strings
271
271
m = {k : v .replace (' \0' , ' ^@' ) for k , v in m .items ()}
272
- result.c , result. m = c , m
272
+ result.word = c
273
273
if ' info' in m :
274
- r .text, r .info = m [' text ' ], m [' info' ]
275
- vim .command (' call add(res, {"word": IPythonPyeval("r.c "), '
276
- ' "menu": IPythonPyeval("r.text "), '
274
+ result. menu , result .info = m [' menu ' ], m [' info' ]
275
+ vim .command (' call add(res, {"word": IPythonPyeval("r.word "), '
276
+ ' "menu": IPythonPyeval("r.menu "), '
277
277
' "info": IPythonPyeval("r.info")})' )
278
278
else :
279
- r .text = m .get (' text ' , ' ' )
280
- vim .command (' call add(res, {"word": IPythonPyeval("r.c "), '
281
- ' "menu": IPythonPyeval("r.text ")})' )
279
+ result. menu = m .get (' menu ' , ' ' )
280
+ vim .command (' call add(res, {"word": IPythonPyeval("r.word "), '
281
+ ' "menu": IPythonPyeval("r.menu ")})' )
282
282
endpython
283
283
284
284
fun ! CompleteIPython (findstart, base)
0 commit comments