diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2021-01-29 19:29:16 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2021-01-29 19:29:16 +0100 |
| commit | 39128b2b133548fcd2a1108c346aa52a9df03601 (patch) | |
| tree | 557a3d983d6ec098e2aa973326269a09253bf8af /src | |
| parent | e1f18478801201a1449e41dabc569f60b3d09020 (diff) | |
dynamic indexer would fail on multiple save - fixed
Diffstat (limited to 'src')
| -rw-r--r-- | src/index/collector.odin | 2 |
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; } |