diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-11-27 21:15:52 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-11-27 21:15:52 +0000 |
| commit | f560b71b0ab48a2a46ead14d9466a541cf43f2d1 (patch) | |
| tree | 8bee4864651bb37185314cd89c8505421ade651e /test/editor.cxx | |
| parent | 1a793cdbc31f9fedaf282b8a348851b412e662f1 (diff) | |
Fixed Fl_Text_Display Tabulator calculations (STR #2450)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/editor.cxx')
| -rw-r--r-- | test/editor.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/editor.cxx b/test/editor.cxx index ff4829eed..fbbc0e406 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -775,22 +775,12 @@ Fl_Window* new_view() { w->editor = new Fl_Text_Editor(0, 30, 660, 370); w->editor->textfont(FL_COURIER); w->editor->textsize(TS); - w->editor->wrap_mode(Fl_Text_Editor::WRAP_AT_BOUNDS, 250); + //w->editor->wrap_mode(Fl_Text_Editor::WRAP_AT_BOUNDS, 250); w->editor->buffer(textbuf); - w->editor->textfont(FL_HELVETICA); - textbuf->text( - "12345678912345678901234567890\n" - "\tqwertyuiop\n" - "WWWWWWWW\tqwertyuiop\n" - "iiiiiiii\tqwertyuiop\n" - "\tasdfghjkl\n" - "\t\tasdfghjkl\t\n" - "\t\t\tzxcvbnm,\t\t\n" - "a\tb\tc\td\te\n" - "nvfdnv"); w->editor->highlight_data(stylebuf, styletable, sizeof(styletable) / sizeof(styletable[0]), 'A', style_unfinished_cb, 0); + textbuf->text(); style_init(); w->end(); w->resizable(w->editor); |
