From 5e3272421026aa928f76751d022ade5914810a32 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 1 Nov 2011 14:48:35 -0500 Subject: [PATCH] user32: Only attempt autoscroll line breaking on an edit control when we have a reasonable width to break to. --- dlls/user32/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index a0bc962d08f..7971333d44f 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -600,7 +600,7 @@ static void EDIT_BuildLineDefs_ML(EDITSTATE *es, INT istart, INT iend, INT delta /* Line breaks just look back from the end and find the next break and try that. */ if (!(es->style & ES_AUTOHSCROLL)) { - if (current_line->width > fw) { + if (current_line->width > fw && fw > es->char_width) { INT prev, next; int w; -- 2.11.4.GIT