summaryrefslogtreecommitdiff
path: root/iup/src/win/iupwin_text.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 23:19:00 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 23:19:00 +0200
commit6646ed5da54049c3837f4dcc71b5d2415fdc412b (patch)
treefd4677d6ac1b1fba21b091c1b022a34c0804142d /iup/src/win/iupwin_text.c
parentb9bee040c513f75a81ccd75095fc85e4ca540170 (diff)
Needs to redraw after formatting.
Diffstat (limited to 'iup/src/win/iupwin_text.c')
-rwxr-xr-xiup/src/win/iupwin_text.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}