mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: regression: last cell wasn't included in copied text
This commit is contained in:
parent
15afd26716
commit
75830ba016
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ extract_selection(const struct terminal *term)
|
|||
*/
|
||||
|
||||
for (int col = start_col, empty_count = 0;
|
||||
col < (r == end->row ? end->col : term->cols);
|
||||
col <= (r == end->row ? end->col : term->cols - 1);
|
||||
col++)
|
||||
{
|
||||
const struct cell *cell = &row->cells[col];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue