From 86b478fc57f6eb8bc1addd07d4feb95c83f6792c Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 21 Sep 2015 16:58:32 +0200 Subject: Console bugfix: home should move to leftmostColumn --- js/codeq/console.js | 7 ++++--- 1 file 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); } }, -- cgit v1.2.1