summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-21 16:58:32 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-21 16:58:32 +0200
commit86b478fc57f6eb8bc1addd07d4feb95c83f6792c (patch)
tree3c2820ce56f9c692f85b35235a03dbdeccfbc294 /js
parentd1445d6af226de21ecf513ff7aff7d6f7bb82b1c (diff)
Console bugfix: home should move to leftmostColumn
Diffstat (limited to 'js')
-rw-r--r--js/codeq/console.js7
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);
}
},