aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-12-05 14:35:57 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2021-12-05 14:35:57 +0100
commit1265c9aaef3d7d266453002ba45ace3caa8b13a6 (patch)
tree2e5a0eaabd26db93ab6a8254cdf167645be6ae68 /src
parenta0ffd79bfbce127343e3110daae7dc21bb241173 (diff)
Show all items on completions with empty string.
Diffstat (limited to 'src')
-rw-r--r--src/index/memory_index.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index/memory_index.odin b/src/index/memory_index.odin
index 93c7ded..5cc8831 100644
--- a/src/index/memory_index.odin
+++ b/src/index/memory_index.odin
@@ -38,6 +38,10 @@ memory_index_fuzzy_search :: proc(index: ^MemoryIndex, name: string, pkgs: []str
top := 20;
+ if name == "" {
+ top = 10000
+ }
+
for _, symbol in index.collection.symbols {
if !exists_in_scope(symbol.pkg, pkgs) {