fix cursor keys in long lines wrapped in markdown
Merge pull request #5768 from ivanov/cm-uuddlrlrba

fix cursor keys in long lines wrapped in markdown