From 6646ed5da54049c3837f4dcc71b5d2415fdc412b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 23:19:00 +0200 Subject: Needs to redraw after formatting. --- iup/src/win/iupwin_text.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iup/src/win/iupwin_text.c b/iup/src/win/iupwin_text.c index 9059796..7f3ea63 100755 --- a/iup/src/win/iupwin_text.c +++ b/iup/src/win/iupwin_text.c @@ -1197,6 +1197,7 @@ void iupdrvTextAddFormatTagStopBulk(Ihandle* ih, void* stateOpaque) SendMessage(ih->handle, WM_SETREDRAW, TRUE, 0); SendMessage(ih->handle, EM_SETEVENTMASK, 0, state->eventMask); free(state); + iupdrvRedrawNow(ih); } void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag, int bulk) @@ -1264,6 +1265,7 @@ void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag, int bulk) SendMessage(ih->handle, EM_LINESCROLL, 0, line0 - line1); SendMessage(ih->handle, WM_SETREDRAW, TRUE, 0); SendMessage(ih->handle, EM_SETEVENTMASK, 0, oldEventMask); + iupdrvRedrawNow(ih); } } -- cgit v1.2.3