Commit 9b47add3 authored by Matthew Finnicum's avatar Matthew Finnicum Committed by Alexandre Julliard

riched20: Make EM_EXLINEFROMCHAR handle special case of lParam == -1.

parent 52d16ff5
......@@ -2151,6 +2151,9 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
}
case EM_EXLINEFROMCHAR:
{
if (lParam == -1)
return ME_RowNumberFromCharOfs(editor, ME_GetCursorOfs(editor,1));
else
return ME_RowNumberFromCharOfs(editor, lParam);
}
case EM_LINEINDEX:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment