riched20: Don't set para unless committing cursor move in ME_MoveCursorWords.
commit7e28fa5c558f1417f8f033cb843424778bbfb8b8
authorJinoh Kang <jinoh.kang.kr@gmail.com>
Fri, 24 Feb 2023 17:14:36 +0000 (25 02:14 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 28 Feb 2023 08:46:43 +0000 (28 09:46 +0100)
tree9d49b7029a797277a97c686f764f9f3fcf1e1880
parent21d25b17c2cae8eb2d2376ce42b76e3f61eb0bba
riched20: Don't set para unless committing cursor move in ME_MoveCursorWords.

Introduce a temporary variable, `other_para`, so that we don't end up
returning incorrect para (with stale run) inside the output cursor.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54564
dlls/riched20/caret.c
dlls/riched20/tests/editor.c