From fa595e9e5b9c7692f21df548a0d06b5a3671fbc1 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 14 Nov 2016 14:43:10 +1100 Subject: Edit and search menu items now grey themselves out when appropriate --- c_fl_text_buffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c_fl_text_buffer.cpp') 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(tb)->selected(); +} + + int fl_text_buffer_skip_lines(TEXTBUFFER tb, int s, int l) { return reinterpret_cast(tb)->skip_lines(s, l); } -- cgit