mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
limit number of autocomplete results to 100, closes #44
This commit is contained in:
parent
0e9473119e
commit
1efac99828
1 changed files with 4 additions and 0 deletions
|
@ -126,6 +126,10 @@ $.ui.autocomplete.filter = (array, terms) => {
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
results.push(item);
|
results.push(item);
|
||||||
|
|
||||||
|
if (results.length > 100) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue