changeset 2139:3b688863e704

turn on wrapping for textarea
author corvid <corvid@lavabit.com>
date Mon, 18 Jul 2011 22:42:50 +0000
parents 27cbf3c78acf
children 301b96b9522d 350af350b840
files dw/fltkui.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkui.cc	Mon Jul 18 20:52:44 2011 +0200
+++ b/dw/fltkui.cc	Mon Jul 18 22:42:50 2011 +0000
@@ -634,6 +634,7 @@
    Fl_Text_Editor *text =
       new Fl_Text_Editor (allocation->x, allocation->y, allocation->width,
                           allocation->ascent + allocation->descent);
+   text->wrap_mode(Fl_Text_Display::WRAP_AT_BOUNDS, 0);
    text->buffer (buffer);
    return text;
 }