summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Buffer.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Text_Buffer.H')
-rw-r--r--FL/Fl_Text_Buffer.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/FL/Fl_Text_Buffer.H b/FL/Fl_Text_Buffer.H
index e519609d5..13fc0cfe4 100644
--- a/FL/Fl_Text_Buffer.H
+++ b/FL/Fl_Text_Buffer.H
@@ -242,11 +242,13 @@ class FL_EXPORT Fl_Text_Buffer {
/** Returns the current nul substitution character. */
char null_substitution_character() const { return mNullSubsChar; }
/** Returns the primary selection. */
+ const Fl_Text_Selection* primary_selection() const { return &mPrimary; }
+ /** Returns the primary selection. */
Fl_Text_Selection* primary_selection() { return &mPrimary; }
/** Returns the secondary selection. */
- Fl_Text_Selection* secondary_selection() { return &mSecondary; }
+ const Fl_Text_Selection* secondary_selection() const { return &mSecondary; }
/** Returns the current highlight selection. */
- Fl_Text_Selection* highlight_selection() { return &mHighlight; }
+ const Fl_Text_Selection* highlight_selection() const { return &mHighlight; }
protected:
void call_modify_callbacks(int pos, int nDeleted, int nInserted,