Skip to content

Commit

Permalink
fixed offset
Browse files Browse the repository at this point in the history
  • Loading branch information
David Furió committed Jun 30, 2017
1 parent 4ebdd51 commit 0788c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonx/cm_sources/swift-completer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cm_refresh(self, info, ctx, *args):
for row_current, text in enumerate(buf):
if row_current < lnum - 1:
offset += len(bytes(text, enc)) + 1
offset += col - 1
offset += col - 1

logger.info("offset: %d", offset)
logger.info("startcol: %d", startcol)
Expand Down

0 comments on commit 0788c37

Please sign in to comment.