mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix displaying 1 / 0 in find widget
This commit is contained in:
parent
01474ecd2d
commit
121e4ba2ea
@ -115,7 +115,7 @@ export default class FindInCode {
|
||||
|
||||
return {
|
||||
totalFound,
|
||||
currentFound: currentFound + 1
|
||||
currentFound: Math.min(currentFound + 1, totalFound)
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ export default class FindInHtml {
|
||||
|
||||
res({
|
||||
totalFound: this.$results.length,
|
||||
currentFound: 1
|
||||
currentFound: Math.min(1, this.$results.length)
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -59,7 +59,7 @@ export default class FindInText {
|
||||
|
||||
return {
|
||||
totalFound,
|
||||
currentFound: currentFound + 1
|
||||
currentFound: Math.min(currentFound + 1, totalFound)
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user