summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-15 15:17:18 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-15 15:17:18 +0100
commitae2f16b29559d46abc398e1f6a0b290e75af862d (patch)
tree627cd2f64c2d55ee2dd5ca021f609f69878feea6
parentf5e157075eb3cb4df666c4933b6300c6b85743de (diff)
Prolog terminal: do not submit an empty query
-rw-r--r--js/codeq/prolog.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index e35984a..1d2f92e 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -207,6 +207,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
terminal.onInput = function (command) {
if (promptMode) {
+ if (!command) {
+ terminal.append('?- ', 'output');
+ return;
+ }
promptMode = false;
manualStop = false;
terminal.setNotBuffered();