Skip to content

Commit e9dba45

Browse files
committed
Use caret position for inserted text
1 parent 7ada82a commit e9dba45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private void OnPaste(object sender, ExecutedRoutedEventArgs e)
7777
if (System.Windows.Clipboard.ContainsText())
7878
{
7979
var clipboardText = System.Windows.Clipboard.GetText().Replace("\r\n", " ");
80-
QueryTextBox.SelectedText = clipboardText;
80+
_viewModel.ChangeQueryText(QueryTextBox.Text.Insert(QueryTextBox.CaretIndex, clipboardText));
8181
e.Handled = true;
8282
}
8383
}

0 commit comments

Comments
 (0)