Skip to content

Commit

Permalink
Fix magic completion (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Aug 29, 2023
1 parent e8eb309 commit 26f1a86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metakernel/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ def parse_code(self, code, start=0, end=-1):
info['obj'] = obj
info['full_obj'] = full_obj

info['start'] = end - len(obj)
if obj:
info['start'] = end - len(obj)
else:
info['start'] = 0
info['end'] = end
info['pre'] = code[:start]
info['code'] = code[start: end]
Expand Down

0 comments on commit 26f1a86

Please sign in to comment.