summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index 567b28a12..54f680185 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -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;