Fix handling of electricChars in multi-line edits

Closes #2804