From 8123099f8655981e3f7984830fe8ca0154b7278e Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 1 Mar 2016 15:30:27 +0100 Subject: Clear hints immediately when pressing Plan or Test --- js/codeq/python.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/codeq/python.js') diff --git a/js/codeq/python.js b/js/codeq/python.js index 112d7ff..edf0f46 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -155,6 +155,7 @@ along with this program. If not, see . */ }); jqBtnPlan.on('click', function () { + hinter.clear(); if (!hinter.planNext()) { jqBtnPlan.prop('disabled', true).blur(); } @@ -164,6 +165,7 @@ along with this program. If not, see . */ // maintain the illusion var timeout = 500 + Math.random() * 1000; + hinter.clear(); $(editor.getWrapperElement()).addClass('disabled'); editor.setOption('readOnly', 'nocursor'); terminal.inputDisable(); -- cgit v1.2.1