StatePlugin: restore current buffer