mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-19 02:10:04 +08:00
limit number of autocomplete results to 100, closes #44
This commit is contained in:
parent
0e9473119e
commit
1efac99828
@ -126,6 +126,10 @@ $.ui.autocomplete.filter = (array, terms) => {
|
||||
|
||||
if (found) {
|
||||
results.push(item);
|
||||
|
||||
if (results.length > 100) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user