textmate/textmate — pull request #1213 by rdwampler (2014-02-13 05:14:27+00:00)
Title: When making the grammar popup menu, store the currently selected grammar

Fixes an issue where the status bar could display the wrong grammar

To reproduce:
* Open a file with some set grammar
* Move focus to file browser (option-command-tab)
* Click on grammar popup button
* Dismiss grammar menu

Result:
* First menu item (Apache) is selected and displayed in the status bar