@@ -269,16 +269,16 @@ def process_matches(matches, metadata, result):
269269 for c , m in zip (completions, metadata):
270270 # vim can't handle null bytes in Python strings
271271 m = {k : v .replace (' \0' , ' ^@' ) for k , v in m .items ()}
272- result.c , result. m = c , m
272+ result.word = c
273273 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 "), '
277277 ' "info": IPythonPyeval("r.info")})' )
278278 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 ")})' )
282282endpython
283283
284284fun ! CompleteIPython (findstart, base)
0 commit comments