summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
-rw-r--r--src/Fl_Text_Editor.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx
index d7b988b1f..dd53c8a72 100644
--- a/src/Fl_Text_Editor.cxx
+++ b/src/Fl_Text_Editor.cxx
@@ -317,6 +317,11 @@ int Fl_Text_Editor::kf_move(int c, Fl_Text_Editor* e) {
int Fl_Text_Editor::kf_shift_move(int c, Fl_Text_Editor* e) {
kf_move(c, e);
fl_text_drag_me(e->insert_position(), e);
+ char *copy = e->buffer()->selection_text();
+ if (copy) {
+ Fl::copy(copy, strlen(copy), 0);
+ free(copy);
+ }
return 1;
}
/** Moves the current text cursor in the direction indicated by control key */