don't try to build completion from invalid node
This commit is contained in:
parent
4be84e1609
commit
757c2314dd
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ var parse_input = func(expr) {
|
|||
var build_completion = func(in) {
|
||||
completion = [];
|
||||
var s = parse_input(in);
|
||||
if (s.parent == nil)
|
||||
if (s.error or s.parent == nil)
|
||||
return;
|
||||
|
||||
foreach (var c; s.parent.getChildren()) {
|
||||
|
|
Loading…
Reference in a new issue