richedit: Pressing tab with selection back to start of table.

This commit is contained in:
Dylan Smith 2008-08-28 15:23:53 -04:00 committed by Alexandre Julliard
parent ac40efa911
commit 238fd58a09
1 changed files with 1 additions and 0 deletions

View File

@ -3678,6 +3678,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
para = ME_GetParagraph(cursor.pRun); para = ME_GetParagraph(cursor.pRun);
if (ME_IsSelection(editor) && if (ME_IsSelection(editor) &&
cursor.pRun->member.run.nCharOfs + cursor.nOffset == 0 && cursor.pRun->member.run.nCharOfs + cursor.nOffset == 0 &&
to == ME_GetCursorOfs(editor, 0) &&
para->member.para.prev_para->type == diParagraph) para->member.para.prev_para->type == diParagraph)
{ {
para = para->member.para.prev_para; para = para->member.para.prev_para;