user32: Don't repaint the caret in SetCaretPos if the position doesn't change.
This commit is contained in:
parent
84412cb0f5
commit
5702a941ad
|
@ -269,7 +269,7 @@ BOOL WINAPI SetCaretPos( INT x, INT y )
|
|||
}
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
if (ret && !hidden)
|
||||
if (ret && !hidden && (x != r.left || y != r.top))
|
||||
{
|
||||
if (old_state) CARET_DisplayCaret( hwnd, &r );
|
||||
r.right += x - r.left;
|
||||
|
|
Loading…
Reference in New Issue