diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:27:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:27:29 -0700 |
commit | ee3ed33801eeb1472ea54051a8fa59653a11baae (patch) | |
tree | b9ef9a1d2c0b82da633486c3a9924ffd7e37d072 /parser.c | |
parent | d6ad5b6d3c5102dc7837bae1ae8f5528fa7b68b6 (diff) | |
download | txr-ee3ed33801eeb1472ea54051a8fa59653a11baae.tar.gz txr-ee3ed33801eeb1472ea54051a8fa59653a11baae.tar.bz2 txr-ee3ed33801eeb1472ea54051a8fa59653a11baae.zip |
No completion on symbol in nonexistent package.
* parser.c (provide_completions): If find_package returns
nil, then just bail with no completions.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -465,6 +465,8 @@ static void provide_completions(const char *data, { val package_name = string_utf8(pkg_copy); package = find_package(package_name); + if (!package) + return; } end = pkg; |