From f13fe24e9e3aef3c194fbba10a2396d979e585e9 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 6 Dec 2013 11:51:23 +0000 Subject: [PATCH] riched20: Remove some over-zealous calls to clear the insert style. It's cleared correctly, if the selection actually changes, in the selection change notification handler. --- dlls/riched20/caret.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index fd7034d40cd..33ea5324c24 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -128,7 +128,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to) ME_SetCursorToStart(editor, &editor->pCursors[1]); ME_SetCursorToEnd(editor, &editor->pCursors[0]); ME_InvalidateSelection(editor); - ME_ClearTempStyle(editor); return len + 1; } @@ -151,7 +150,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to) editor->pCursors[1] = editor->pCursors[0]; ME_Repaint(editor); } - ME_ClearTempStyle(editor); return end; } @@ -180,7 +178,6 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to) ME_SetCursorToEnd(editor, &editor->pCursors[0]); editor->pCursors[1] = editor->pCursors[0]; ME_InvalidateSelection(editor); - ME_ClearTempStyle(editor); return len; } @@ -1132,7 +1129,6 @@ void ME_LButtonDown(ME_TextEditor *editor, int x, int y, int clickNum) ME_InvalidateSelection(editor); ITextHost_TxShowCaret(editor->texthost, FALSE); ME_ShowCaret(editor); - ME_ClearTempStyle(editor); ME_SendSelChange(editor); }