From eedc5bdc0ecb77515a986e8ec064453503cab780 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 13 Dec 2023 02:52:03 -0800 Subject: [PATCH] Allow walk while selection is being made --- src/Fl_Terminal.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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? }