diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-21 16:58:32 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-21 16:58:32 +0200 |
commit | 86b478fc57f6eb8bc1addd07d4feb95c83f6792c (patch) | |
tree | 3c2820ce56f9c692f85b35235a03dbdeccfbc294 | |
parent | d1445d6af226de21ecf513ff7aff7d6f7bb82b1c (diff) |
Console bugfix: home should move to leftmostColumn
-rw-r--r-- | js/codeq/console.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/codeq/console.js b/js/codeq/console.js index 55e9909..859b064 100644 --- a/js/codeq/console.js +++ b/js/codeq/console.js @@ -715,9 +715,10 @@ }, 'moveToStartOfLine': function () { - var lineDescriptor = lines[currentRow]; - if (currentCol != 0) { - currentCol = 0; + var leftmost = typeof handler.leftmostCol === 'number' && handler.leftmostCol || 0, + lineDescriptor = lines[currentRow]; + if (currentCol != leftmost) { + currentCol = leftmost; renderLine(lineDescriptor); } }, |