IDEA-100294 Cannot edit a file - text jumps all over the screen
(cherry picked from commit 36bacc0) [cdr]