mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 23:06:54 +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#
|
int &col ///< returned col#
|
||||||
) const {
|
) const {
|
||||||
if (u8c==NULL) {
|
if (u8c==NULL) {
|
||||||
if (!is_selection()) return NULL;
|
int erow,ecol; // unused
|
||||||
row = select_.srow();
|
if (!get_selection(row,col,erow,ecol)) return NULL; // no selection
|
||||||
col = select_.scol();
|
|
||||||
u8c = u8c_ring_row(row);
|
u8c = u8c_ring_row(row);
|
||||||
} else {
|
} else {
|
||||||
// At end? done
|
// At end? done
|
||||||
|
|||||||
Reference in New Issue
Block a user