summaryrefslogtreecommitdiff
path: root/src/Fl_Terminal.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Terminal.cxx')
-rw-r--r--src/Fl_Terminal.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx
index c9175e723..d4e5feb89 100644
--- a/src/Fl_Terminal.cxx
+++ b/src/Fl_Terminal.cxx
@@ -1816,9 +1816,8 @@ const Fl_Terminal::Utf8Char* Fl_Terminal::walk_selection(
int &col ///< returned col#
) const {
if (u8c==NULL) {
- if (!is_selection()) return NULL;
- row = select_.srow();
- col = select_.scol();
+ int erow,ecol; // unused
+ if (!get_selection(row,col,erow,ecol)) return NULL; // no selection
u8c = u8c_ring_row(row);
} else {
// At end? done