diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-15 15:17:18 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-15 15:17:18 +0100 |
commit | ae2f16b29559d46abc398e1f6a0b290e75af862d (patch) | |
tree | 627cd2f64c2d55ee2dd5ca021f609f69878feea6 /js/codeq | |
parent | f5e157075eb3cb4df666c4933b6300c6b85743de (diff) |
Prolog terminal: do not submit an empty query
Diffstat (limited to 'js/codeq')
-rw-r--r-- | js/codeq/prolog.js | 4 |
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(); |