From d1a1b4b2b9757406af7670276f1126caaa8e92e3 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 2 Dec 2024 21:50:50 +0800 Subject: [PATCH] enhance: do NOT show search suggestion if input string is empty (#775) --- src/ViewModels/CommitDetail.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/CommitDetail.cs b/src/ViewModels/CommitDetail.cs index ec2822cd..2872528a 100644 --- a/src/ViewModels/CommitDetail.cs +++ b/src/ViewModels/CommitDetail.cs @@ -137,7 +137,9 @@ namespace SourceGit.ViewModels { _revisionFiles.Clear(); _revisionFiles.AddRange(files); - UpdateRevisionFileSearchSuggestion(); + + if (!string.IsNullOrEmpty(_revisionFileSearchFilter)) + UpdateRevisionFileSearchSuggestion(); } }); });