diff options
| author | Manolo Gouy <Manolo> | 2013-02-08 11:58:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2013-02-08 11:58:19 +0000 |
| commit | 914e7f9b0926a62f65c0351963ba533c6dee09f5 (patch) | |
| tree | a3022792cb9058aa5beda3fe15808d9963f3f870 /src/Fl_Text_Editor.cxx | |
| parent | b22744aac0d54f16d39b2e01654fee9a5e47407a (diff) | |
Mac OS text input: removed the Fl::marked_text_length() function that's not necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Editor.cxx')
| -rw-r--r-- | src/Fl_Text_Editor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Text_Editor.cxx b/src/Fl_Text_Editor.cxx index cc57725ed..03e4b22bd 100644 --- a/src/Fl_Text_Editor.cxx +++ b/src/Fl_Text_Editor.cxx @@ -526,9 +526,9 @@ int Fl_Text_Editor::handle_key() { else overstrike(Fl::event_text()); } #ifdef __APPLE__ - if (Fl::marked_text_length()) { + if (Fl::compose_state) { int pos = this->insert_position(); - this->buffer()->select(pos - Fl::marked_text_length(), pos); + this->buffer()->select(pos - Fl::compose_state, pos); } #endif show_insert_position(); @@ -569,7 +569,7 @@ int Fl_Text_Editor::handle(int event) { case FL_UNFOCUS: show_cursor(mCursorOn); // redraws the cursor #ifdef __APPLE__ - if (buffer()->selected() && Fl::marked_text_length()) { + if (buffer()->selected() && Fl::compose_state) { int pos = insert_position(); buffer()->select(pos, pos); Fl::reset_marked_text(); |
