Skip to content

Commit 7ada82a

Browse files
committed
Prepend clipboard to query
1 parent 694e504 commit 7ada82a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ private void OnPaste(object sender, ExecutedRoutedEventArgs e)
7676
{
7777
if (System.Windows.Clipboard.ContainsText())
7878
{
79-
_viewModel.ChangeQueryText(System.Windows.Clipboard.GetText().Replace("\n", String.Empty).Replace("\r", String.Empty));
79+
var clipboardText = System.Windows.Clipboard.GetText().Replace("\r\n", " ");
80+
QueryTextBox.SelectedText = clipboardText;
8081
e.Handled = true;
8182
}
8283
}

0 commit comments

Comments
 (0)