sublime-gofmt
sublime-gofmt copied to clipboard
Conflict with search panel and save_on_focus_lost
There is a conflict with the search panel if the setting save_on_focus_lost
is enabled, where the search panel will not show up the first time CTRL+F
is pressed.
Steps to reproduce:
- Set
"save_on_focus_lost": true,
in Sublime preferences. - Open a go file and make some unsaved changes.
- Press
CTRL+F
.
I think Sublime Text opens the search panel, which means the editor loses focus, which triggers a save, which triggers the gofmt plugin, which closes the search panel somehow.
Pressing CTRL+F
a second time will then work, because there are no unsaved changes.