mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: fix typo when extending selection to cover double-width character
This commit is contained in:
parent
f1c8ccddde
commit
159bfddb87
1 changed files with 1 additions and 1 deletions
|
|
@ -458,7 +458,7 @@ selection_update(struct terminal *term, int col, int row)
|
|||
if (wcwidth(row_end->cells[new_end.col - 1].wc) > 1)
|
||||
new_end.col--;
|
||||
if (new_start.col + 1 < term->cols)
|
||||
if (wcwidth(row_end->cells[new_start.col].wc) > 1)
|
||||
if (wcwidth(row_start->cells[new_start.col].wc) > 1)
|
||||
new_start.col++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue