summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-22 16:18:56 +0100
committerGitHub <noreply@github.com>2022-11-22 16:18:56 +0100
commit495b2395c14607c030a0270ed7341bf04be7fa56 (patch)
tree84607d73d8f2f7f4717ef044bc70b7aec223e253 /FL
parentbe928430a6cc642b82bc1dfe6a94823ae0dd5016 (diff)
Fix selection extension in Fl_Text_*, issue 196 (#550)
Selecting a text range programmatically would not sync some variables with the actual selection. This also fixes a crash bug in macOS when dragging text that was selected by buffer()->select() only.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Text_Display.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H
index 21f0d63d8..1d5b51193 100644
--- a/FL/Fl_Text_Display.H
+++ b/FL/Fl_Text_Display.H
@@ -124,6 +124,7 @@ public:
WRAP_AT_BOUNDS /**< wrap text so that it fits into the widget width */
};
+ friend int fl_text_drag_prepare(int pos, int key, Fl_Text_Display* d);
friend void fl_text_drag_me(int pos, Fl_Text_Display* d);
typedef void (*Unfinished_Style_Cb)(int, void *);