From 757c2314dd0e040050101501c5c3c5b3d8b3d94b Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 26 Apr 2008 23:29:52 +0000 Subject: [PATCH] don't try to build completion from invalid node --- Nasal/prop_key_handler.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/prop_key_handler.nas b/Nasal/prop_key_handler.nas index 1716f239a..d8855b332 100644 --- a/Nasal/prop_key_handler.nas +++ b/Nasal/prop_key_handler.nas @@ -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()) {