mirror of https://github.com/fltk/fltk
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:
parent
6c54b06dd8
commit
7346268f4a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue