DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2892
Version: 1.3-current
As erco wrote on fltk.general:
>Â Â Â Â Â Â Â Â Getting these errors on the terminal for every character
I type:
>
> Fl_Text_Display::position_to_line(): Consistency check ptvl failed
> Fl_Text_Display::position_to_line(): Consistency check ptvl failed
> Fl_Text_Display::position_to_line(): Consistency check ptvl failed
> Fl_Text_Display::position_to_line(): Consistency check ptvl failed
>
> Â Â Â Â Â Â Â Â Also, even though the screen appears to be large enough,
it
> Â Â Â Â Â Â Â Â doesn't show the line being typed, but seems scrolled
down
> Â Â Â Â Â Â Â Â to an empty line beyond the end of the buffer.
...which pretty much covers it.
It seems like the Fl_Text_Display needs to have room for two lines and use
WRAP_AT_BOUNDS wrap mode.
I'm amazed that I haven't tripped over this before with textareas in
dillo, but maybe two lines tall is uncommon enough...
Code to reproduce attached.
Link: http://www.fltk.org/str.php?L2892
Version: 1.3-current
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Text_Editor.H>
int main() {
  Fl_Window* w = new Fl_Window(186, 38);
  w->begin();
    Fl_Text_Editor *e = new Fl_Text_Editor(0, 0, 186, 38);
    e->wrap_mode(Fl_Text_Editor::WRAP_AT_BOUNDS, 0);
    e->buffer(new Fl_Text_Buffer);
  w->end();
  w->show();
  return Fl::run();
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs