From ab593ac1f3056a6b113ddafddd146bab451e85b0 Mon Sep 17 00:00:00 2001 From: Clem Date: Mon, 10 Apr 2023 15:18:51 +0200 Subject: [PATCH] (corrected) fix Eugeny/tabby#8154 : search panel counter starts from 0 --- tabby-terminal/src/components/searchPanel.component.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-terminal/src/components/searchPanel.component.pug b/tabby-terminal/src/components/searchPanel.component.pug index 93dfbf2a..e27441cc 100644 --- a/tabby-terminal/src/components/searchPanel.component.pug +++ b/tabby-terminal/src/components/searchPanel.component.pug @@ -9,7 +9,7 @@ (keyup.esc)='close.emit()', [placeholder]='"Search"|translate' ) - .input-group-text.result-counter(*ngIf='state.resultCount > 0') {{state.resultIndex ?? 0 + 1}} / {{state.resultCount}} + .input-group-text.result-counter(*ngIf='state.resultCount > 0') {{(state.resultIndex ?? 0) + 1}} / {{state.resultCount}} ng-container(*ngIf='state.resultCount > 0') button.btn.btn-link(