diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-11-14 14:43:10 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-11-14 14:43:10 +1100 |
commit | fa595e9e5b9c7692f21df548a0d06b5a3671fbc1 (patch) | |
tree | 16f03415710455471c4a54aba002fef4676840aa /c_fl_text_buffer.cpp | |
parent | b34ef4af65403999f7e4e9c152f39cbe3744c7b5 (diff) |
Edit and search menu items now grey themselves out when appropriate
Diffstat (limited to 'c_fl_text_buffer.cpp')
-rw-r--r-- | c_fl_text_buffer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c_fl_text_buffer.cpp b/c_fl_text_buffer.cpp index 623aea7..966f142 100644 --- a/c_fl_text_buffer.cpp +++ b/c_fl_text_buffer.cpp @@ -80,6 +80,11 @@ int fl_text_buffer_selection_position(TEXTBUFFER tb, int * s, int * e) { } +int fl_text_buffer_selected(TEXTBUFFER tb) { + return reinterpret_cast<Fl_Text_Buffer*>(tb)->selected(); +} + + int fl_text_buffer_skip_lines(TEXTBUFFER tb, int s, int l) { return reinterpret_cast<Fl_Text_Buffer*>(tb)->skip_lines(s, l); } |