diff options
| author | Greg Ercolano <erco@seriss.com> | 2023-12-13 02:52:03 -0800 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2023-12-13 02:52:03 -0800 |
| commit | eedc5bdc0ecb77515a986e8ec064453503cab780 (patch) | |
| tree | 838457850f5e456176d97cd7ede5caa838247948 /src/Fl_Terminal.cxx | |
| parent | 9738e52511ce0ca87570f53bad29cbc4ed9ce657 (diff) | |
Allow walk while selection is being made
Diffstat (limited to 'src/Fl_Terminal.cxx')
| -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? } |
