summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/codeq/console.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/console.js b/js/codeq/console.js
index 0000f9e..cee3aac 100644
--- a/js/codeq/console.js
+++ b/js/codeq/console.js
@@ -839,7 +839,7 @@
// in line-buffered mode emit each line separately, except for the last (current) line
try {
line = lines[thisRow].content.substring(leftmost);
- if (autoHistory) handler.addHistory(line); // auto-history works only in line-buffered mode
+ if (autoHistory && line) handler.addHistory(line); // auto-history works only in line-buffered mode
handler.resetCurrentHistory();
return handler.onInput(line);
}