summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Editor.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-13 12:30:49 +0000
committerManolo Gouy <Manolo>2010-12-13 12:30:49 +0000
commit8132eba4f5ab7a698974316bc2624077ade36937 (patch)
treea6cabe209c66b4291da408c03b5a1c56eec36e69 /src/Fl_Text_Editor.cxx
parent02f327dbec37648afe548275158e6754a91c5b3f (diff)
Fix STR #2478: added missing code that updates the FLTK selection buffer after
the Fl_Text_xxx selection is changed by shift-arrow key. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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 */