Fix current input not being saved in buffer history