From 7ada82afd13edc846a65d7dff0cb9fa7917df4c3 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Sun, 4 Feb 2024 10:23:37 -0500 Subject: [PATCH] Prepend clipboard to query --- Flow.Launcher/MainWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 7d1a68125..e61b32a94 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -76,7 +76,8 @@ namespace Flow.Launcher { if (System.Windows.Clipboard.ContainsText()) { - _viewModel.ChangeQueryText(System.Windows.Clipboard.GetText().Replace("\n", String.Empty).Replace("\r", String.Empty)); + var clipboardText = System.Windows.Clipboard.GetText().Replace("\r\n", " "); + QueryTextBox.SelectedText = clipboardText; e.Handled = true; } }