diff options
| author | Manolo Gouy <Manolo> | 2016-03-31 06:24:26 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-31 06:24:26 +0000 |
| commit | 059664e7d4c6230b4fe799bd01bc6e630835c05c (patch) | |
| tree | a6dcbaaf10d59e36088b9176389a2bc33e8e9601 /src/Fl_Text_Editor.cxx | |
| parent | 62f9813e4ed6a001848d3c31b72f3d48d48df774 (diff) | |
Begin to remove platform-dependent code from the Fl.H header file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index 8ca2fd4b7..c43fb518c 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -586,13 +586,11 @@ int Fl_Text_Editor::handle(int event) { case FL_UNFOCUS: show_cursor(mCursorOn); // redraws the cursor -#ifdef __APPLE__ // PORTME: Fl_Screen_Driver - platform compose - if (buffer()->selected() && Fl::compose_state) { + if (Fl_System_Driver::driver()->has_marked_text() && buffer()->selected() && Fl::compose_state) { int pos = insert_position(); buffer()->select(pos, pos); Fl::reset_marked_text(); } -#endif if (buffer()->selected()) redraw(); // Redraw selections... case FL_HIDE: if (when() & FL_WHEN_RELEASE) maybe_do_callback(); |
