diff options
| -rw-r--r-- | src/Fl_Terminal.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Terminal.cxx b/src/Fl_Terminal.cxx index d4e5feb89..6c806b8be 100644 --- a/src/Fl_Terminal.cxx +++ b/src/Fl_Terminal.cxx @@ -1820,8 +1820,10 @@ const Fl_Terminal::Utf8Char* Fl_Terminal::walk_selection( if (!get_selection(row,col,erow,ecol)) return NULL; // no selection u8c = u8c_ring_row(row); } else { + int srow,scol,erow,ecol; + if (!get_selection(srow,scol,erow,ecol)) return NULL; // no selection // At end? done - if (row == select_.erow() && col == select_.ecol()) return NULL; + if (row == erow && col == ecol) return NULL; if (++col >= ring_cols()) // advance to next char { col = 0; ++row; } // wrapped to next row? } |
