Move limit check down

This commit is contained in:
Jonas Schievink 2020-06-10 12:37:00 +02:00
parent 56c7145993
commit ed2817e599

View File

@ -337,10 +337,10 @@ pub(crate) fn search(self, indices: &[Arc<SymbolIndex>]) -> Vec<FileSymbol> {
continue;
}
res.push(symbol.clone());
if res.len() >= self.limit {
return res;
}
res.push(symbol.clone());
}
}
}