mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Address hang in issue #866
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user