diff options
| author | john.j.camilleri <john.j.camilleri@chalmers.se> | 2012-11-15 15:38:17 +0000 |
|---|---|---|
| committer | john.j.camilleri <john.j.camilleri@chalmers.se> | 2012-11-15 15:38:17 +0000 |
| commit | f815b2850b91d2b947ebca6f158ecae27f1c414d (patch) | |
| tree | 716dbd018e299329dfc8c15f992b379b0e3d2ca9 /src/www/syntax-editor/js/editor.js | |
| parent | dc0f333fec9f3f11748d884058522b5575ddce4e (diff) | |
Syntax editor: jump to next hole in tree
Diffstat (limited to 'src/www/syntax-editor/js/editor.js')
| -rw-r--r-- | src/www/syntax-editor/js/editor.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/www/syntax-editor/js/editor.js b/src/www/syntax-editor/js/editor.js index 740150c18..b7fa2dd87 100644 --- a/src/www/syntax-editor/js/editor.js +++ b/src/www/syntax-editor/js/editor.js @@ -137,14 +137,16 @@ Editor.prototype.complete_refinement=function(data) { for (ci in fun_args) { ast.add(null, fun_args[ci]); } - - // Select next hole & get its refinements - ast.toChild(0); - update_current_node(); - get_refinements(); } + + // Update vis redraw_tree(); update_linearisation(); + + // Select next hole & get its refinements + ast.toNextHole(); + update_current_node(); + get_refinements(); } } |
