Address hang in issue #866

This commit is contained in:
Greg Ercolano 2023-12-12 13:46:51 -08:00
parent c10183379f
commit 817966f215

View File

@ -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