summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2017-10-18 07:16:46 +0000
committerGreg Ercolano <erco@seriss.com>2017-10-18 07:16:46 +0000
commitbc42454074073803ad06ca4faa4af555ee5edf34 (patch)
tree109fab53a6a0d0effb5501d074b7dff66d8a4329 /FL
parenta92b628774d4ea26f97fef24771bc95a02ffbd3b (diff)
Addresses STR #2788 for cursor positioning with mouse-click on different sides of character.
Applying guyben's patch (with small mods suggested by albrecht & greg in comments 7-11). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Text_Display.H3
1 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H
index 50dfd1c02..a15c6a465 100644
--- a/FL/Fl_Text_Display.H
+++ b/FL/Fl_Text_Display.H
@@ -378,7 +378,8 @@ protected:
DRAW_LINE,
FIND_INDEX,
FIND_INDEX_FROM_ZERO,
- GET_WIDTH
+ GET_WIDTH,
+ FIND_CURSOR_INDEX // STR #2788
};
int handle_vline(int mode,