We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9123122 commit b2c68b3Copy full SHA for b2c68b3
jsontree/src/commonMain/kotlin/com/sebastianneubauer/jsontree/search/SearchState.kt
@@ -55,7 +55,9 @@ public class SearchState internal constructor(
55
get() = state.totalResults
56
57
/**
58
- * The currently selected result. A number between 1 and [totalResults].
+ * The currently selected result.
59
+ * A number between 1 and [totalResults] if there are any results for the current query.
60
+ * 0 in case there are no results.
61
* Use [selectNext] and [selectPrevious] to select a different result.
62
*/
63
public val selectedResult: Int
0 commit comments