[Fix #604] Save only the current buffer on focus lost