Autoclose disable

Button state is updated (on every character, oh well), and fixed some edge cases around partial tags.