Bug 417063 - Inconsistent bracket auto-closing behavior