Trim history search pattern
commit74af6abe8c45fa977e8ed11f93b421557f5f3cb2
authorMichael Keppler <Michael.Keppler@gmx.de>
Wed, 23 Aug 2017 17:13:03 +0000 (23 19:13 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Fri, 25 Aug 2017 08:33:43 +0000 (25 10:33 +0200)
tree62f62a55a01a6af74dd2b06ef8a60fbb0032752e
parent48fcc31eb430b1ae0feada5c189c2d4241fa322c
Trim history search pattern

It is very easy to copy an SHA1 including some whitespace into the
search field, as I accidentally did today. Therefore trimming seems
useful here.

Add logic to prevent starting multiple search jobs for the same
trimmed pattern. This could happen easily now when the user is
typing in a search pattern containing blanks (such as "history
search": we'd get two identical jobs for raw inputs "history"
and "history ").

Change-Id: I875530b45c5745a8fe9d6d5972bfc4f357391303
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FindToolbar.java