1
0
Fork 0

don't try to build completion from invalid node

This commit is contained in:
mfranz 2008-04-26 23:29:52 +00:00
parent 4be84e1609
commit 757c2314dd

View file

@ -211,7 +211,7 @@ var parse_input = func(expr) {
var build_completion = func(in) { var build_completion = func(in) {
completion = []; completion = [];
var s = parse_input(in); var s = parse_input(in);
if (s.parent == nil) if (s.error or s.parent == nil)
return; return;
foreach (var c; s.parent.getChildren()) { foreach (var c; s.parent.getChildren()) {