Fixes buffer cleanup procedure, borked comint keybinds.