Skip to content

Commit

Permalink
[USER32] Edit: Fix caret and scroll position
Browse files Browse the repository at this point in the history
Based on patch by JIRA contributor 'I_Kill_Bugs'. CORE-15780
  • Loading branch information
binarymaster authored and HBelusca committed Mar 24, 2019
1 parent cd70113 commit 36230bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions win32ss/user/user32/controls/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,11 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
x -= es->x_offset;
}
else
#ifdef __REACTOS__ /* CORE-15780 */
x = (lw > 0 ? es->x_offset : x - es->x_offset);
#else
x = es->x_offset;
#endif

if (es->style & ES_RIGHT)
x = w - (lw - x);
Expand Down

0 comments on commit 36230bb

Please sign in to comment.