Skip to content

Commit

Permalink
Correct index display
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Aug 3, 2020
1 parent 181a505 commit 7cb09df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/search-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const SearchView = memo(
</span>
{numResults != null && (
<span className={css(style.resultCount)}>
{resultIndex || '?'}/{numResults}
{resultIndex == null ? '?' : resultIndex + 1}/{numResults}
</span>
)}
<svg
Expand Down

0 comments on commit 7cb09df

Please sign in to comment.