From 495b2395c14607c030a0270ed7341bf04be7fa56 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 22 Nov 2022 16:18:56 +0100 Subject: 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. --- FL/Fl_Text_Display.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL') 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 *); -- cgit v1.2.3