summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq')
-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);
}
},