From 92c2281deff3940bdf838692a0bc303d4926e772 Mon Sep 17 00:00:00 2001
From: Kevin Zhang <45326534+taooceros@users.noreply.github.com>
Date: Mon, 27 Sep 2021 09:02:24 -0500
Subject: [PATCH] fix secondToEndSearch error
---
Flow.Launcher.Plugin/Query.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Flow.Launcher.Plugin/Query.cs b/Flow.Launcher.Plugin/Query.cs
index a4a806a62..dfa9e5df1 100644
--- a/Flow.Launcher.Plugin/Query.cs
+++ b/Flow.Launcher.Plugin/Query.cs
@@ -81,7 +81,7 @@ namespace Flow.Launcher.Plugin
///
/// strings from second search (including) to last search
///
- public string SecondToEndSearch => _secondToEndSearch ??= string.Join(' ', SearchTerms[1..]);
+ public string SecondToEndSearch => SearchTerms.Length > 1? _secondToEndSearch ??= string.Join(' ', SearchTerms[1..]]) : "";
///
/// Return second search split by space if it has