@@ -203,6 +203,7 @@ def find_it():
203
203
for oc in occurrences :
204
204
lst .append (dict (
205
205
filename = oc .resource .path ,
206
+ text = ctx .current [oc .lineno - 1 ],
206
207
lnum = oc .lineno ,
207
208
))
208
209
vim .command ('let l:output = %s' % json .dumps (lst ))
@@ -367,6 +368,7 @@ def __init__(self, path, project_path):
367
368
update_python_path (self .project .prefs .get ('python_path' , []))
368
369
369
370
self .resource = None
371
+ self .current = None
370
372
self .options = dict (
371
373
completeopt = vim .eval ('&completeopt' ),
372
374
autoimport = int (vim .eval ('g:pymode_rope_autoimport' )),
@@ -385,8 +387,9 @@ def __init__(self, path, project_path):
385
387
def __enter__ (self ):
386
388
self .project .validate (self .project .root )
387
389
self .options ['encoding' ]= vim .eval ('&encoding' )
390
+ self .current = vim .current .buffer
388
391
self .resource = libutils .path_to_resource (
389
- self .project ,vim .current . buffer .name ,'file' )
392
+ self .project ,self .current .name ,'file' )
390
393
391
394
if not self .resource .exists ()or os .path .isdir (
392
395
self .resource .real_path ):