mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04: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;
|
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++)
|
col++)
|
||||||
{
|
{
|
||||||
const struct cell *cell = &row->cells[col];
|
const struct cell *cell = &row->cells[col];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue