Made brakets auto-close only at the end of a line.