Skip to content

Commit

Permalink
fix: sdk: editor: Calculate absolute positions based on line/col prop…
Browse files Browse the repository at this point in the history
…erly - fixes #2123

rn=

(integrated from the KomodoIDE master branch change 8043ff1 by Mitchell <mitchellb@activestate.com>)

Komodo/KomodoIDE@8043ff1
  • Loading branch information
mitchell-as authored and Naatan committed Nov 8, 2016
1 parent d90e830 commit 5da5241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/komodo/content/sdk/editor.js
Expand Up @@ -976,7 +976,7 @@ var sdkEditor = function(_scintilla, _scimoz) {
this._posToAbsolute = function(pos)
{
if ( ! pos.line ) pos.line = this.getLineNumber();
return scimoz().positionFromLine(pos.line-1) + (pos.ch || 0);
return scimoz().findColumn(pos.line-1, pos.ch || 0);
}

};
Expand Down

0 comments on commit 5da5241

Please sign in to comment.