IDEA-113940 Enter in comment leads to inconsistent caret position