Closed Eugene-msc closed 9 years ago
This looks good now, but I actually just found that we shouldn't even have this problem in the first place as the "preexec" script apparently has functionality to detect empty commands. For some reason, this is not working though (which is the real bug); I'm currently investigating why.
I found the issue underlying the bug and fixed it in https://github.com/p-e-w/finalterm/commit/39b078b2a96a5c3c9e74f92b1929f383d220ca8b (explanation in https://github.com/p-e-w/finalterm/issues/377#issuecomment-63171648). I'm closing this PR since it only masks the real problem which is now solved.
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