Fixed problem caught by matt in STR#2169:

COMMAND-LEFT and COMMAND-RIGHT didn't scroll if line
wider than screen.. 



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2009-09-20 21:55:21 +00:00
parent 6c54b06dd8
commit 7346268f4a
1 changed files with 2 additions and 2 deletions

View File

@ -378,10 +378,10 @@ int Fl_Text_Editor::kf_meta_move(int c, Fl_Text_Editor* e) {
e->scroll(e->count_lines(0, e->buffer()->length(), 1), 0);
break;
case FL_Left: // beginning of line
e->insert_position(e->buffer()->line_start(e->insert_position()));
kf_move(FL_Home, e);
break;
case FL_Right: // end of line
e->insert_position(e->buffer()->line_end(e->insert_position()));
kf_move(FL_End, e);
break;
}
return 1;