}
}
-void CSCLConnection::get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor)
+sclint CSCLConnection::get_surrounding_text(sclint maxlen_before, sclint maxlen_after, sclchar **text, int &cursor)
{
+ sclint ret = -1;
if (m_impl) {
- m_impl->get_surrounding_text(maxlen_before, maxlen_after, text, cursor);
+ ret = m_impl->get_surrounding_text(maxlen_before, maxlen_after, text, cursor);
}
+ return ret;
}
void CSCLConnection::delete_surrounding_text(sclint offset, sclint len) const