p-e-w/finalterm — pull request #382 by Eugene-msc (2014-11-08 13:01:28+00:00)
Title: Issue #377 collapse button staying red

Basically it checks if the current command is not empty. If it's not then the command was actually executed, otherwise last_command is discarded