From 817966f215519f29adf38bcd2da241810190ad5e Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 12 Dec 2023 13:46:51 -0800 Subject: Address hang in issue #866 --- src/Fl_Terminal.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Fl_Terminal.cxx') 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 -- cgit v1.2.3