Skip to content

Commit

Permalink
优化索引计数循环
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Mar 27, 2024
1 parent 7cda9c1 commit d33d059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-hsr-mdzz2048-fork",
"author": "TCOTC",
"url": "https://github.com/TCOTC/siyuan-plugin-hsr-mdzz2048-fork",
"version": "0.2.0",
"version": "0.2.1",
"minAppVersion": "2.9.8",
"backends": ["windows", "linux", "darwin"],
"frontends": ["desktop", "browser-desktop"],
Expand Down
2 changes: 1 addition & 1 deletion src/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function scroollIntoRanges(index: number) {
}
function clickLast() { // 上一个
highlightHitResult(searchText.value, false)
if (resultIndex.value > 1) {
if ((resultIndex.value > 1 || resultIndex.value > resultCount.value) && resultCount.value != 0) {
resultIndex.value = resultIndex.value - 1
}
else if ((resultIndex.value <= 1 || resultIndex.value > resultCount.value) && resultCount.value != 0) {
Expand Down

0 comments on commit d33d059

Please sign in to comment.