Commit 926b0c71 authored by Jérome Perrin's avatar Jérome Perrin

codemirror: just use anyword autocomplete anywhere

codemirror python's completion just complete on builtins, so that hack is a bit better
parent 24a171a4
...@@ -533,6 +533,13 @@ ...@@ -533,6 +533,13 @@
if(parent_height !== undefined && parent_height > (300 * 0.8)) {\n if(parent_height !== undefined && parent_height > (300 * 0.8)) {\n
cm.setSize(undefined, parent_height);\n cm.setSize(undefined, parent_height);\n
}\n }\n
\n
\n
CodeMirror.commands.autocomplete = function(cm) {\n
CodeMirror.showHint(cm, CodeMirror.hint.anyword, {\n
} );\n
}\n
\n
\n \n
updateErrorWarningMessageDivWithJump();\n updateErrorWarningMessageDivWithJump();\n
\n \n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment