Skip to content

Commit

Permalink
Implement quote-wrapping for ID search.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewNaylor committed Oct 3, 2020
1 parent 61bb843 commit e91cc8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guinget/MainWindow.vb
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,9 @@ Public Class aaformMainWindow
' Search for the ID of the most-recently selected package.
' Make sure there are packages in the list.
If datagridviewPackageList.Rows.Count > 0 Then
toolstriptextboxSearch.Text = datagridviewPackageList.SelectedRows.Item(0).Cells.Item(2).Value.ToString
' We have to wrap it with quotes to get an exact match, since
' that's probably what the user wants.
toolstriptextboxSearch.Text = """" & datagridviewPackageList.SelectedRows.Item(0).Cells.Item(2).Value.ToString & """"
BeginPackageIdSearch()
End If
End Sub
Expand Down

0 comments on commit e91cc8b

Please sign in to comment.