aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-01-29 19:29:16 +0100
committerDanielGavin <danielgavin5@hotmail.com>2021-01-29 19:29:16 +0100
commit39128b2b133548fcd2a1108c346aa52a9df03601 (patch)
tree557a3d983d6ec098e2aa973326269a09253bf8af /src
parente1f18478801201a1449e41dabc569f60b3d09020 (diff)
dynamic indexer would fail on multiple save - fixed
Diffstat (limited to 'src')
-rw-r--r--src/index/collector.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/collector.odin b/src/index/collector.odin
index 922dfcf..e3cfc59 100644
--- a/src/index/collector.odin
+++ b/src/index/collector.odin
@@ -284,7 +284,7 @@ collect_symbols :: proc(collection: ^SymbolCollection, file: ast.File, uri: stri
id := get_symbol_id(cat);
//right now i'm not checking comments whether is for windows, linux, etc, and some packages do not specify that(os)
- if v, ok := collection.symbols[id]; !ok {
+ if v, ok := collection.symbols[id]; !ok || v.name == "" {
collection.symbols[id] = symbol;
}