git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.48k stars 1.25k forks source link

Fix crash when hitting return in search results when nothing is selected #884

Closed lucasderraugh closed 1 year ago

lucasderraugh commented 1 year ago

When we apply a search result (hit return on one), this triggers a change that ultimately deselects all items in the search table view. This means we still have first responder status but have nothing selected. If we hit return now we will try and validate a nil commit and we can't compare nil commits. The solution is to verify that we have a valid commit selection.

Fixes #883