Fix minor autocomplete issues

Insert matching bracket instead of moving cursor if no autocompleted
pair present. Remove space after dash if another is pressed (for hr).
Remove matching brace after math calc.