Close brackets in editor