This patch fixes rightmost boundary check for a word wrapped to another line,
where a multi-column character appears as the last character in the original line.
Quick steps to reproduce:
- Run
printf '\e[%dC👉👉👈👈\n' "$(($(stty size | cut -d' ' -f2) - 4))"in shell. - Double-click (if bound to
select-word) on any of the emoji characters in the first line.
All 4 emoji characters are expected to be selected, however, the characters in
the second line are not selected.
This patch fixes rightmost boundary check for a word wrapped to another line,
where a multi-column character appears as the last character in the original line.
---
Quick steps to reproduce:
1. Run `printf '\e[%dC👉👉👈👈\n' "$(($(stty size | cut -d' ' -f2) - 4))"` in shell.
2. Double-click (if bound to `select-word`) on any of the emoji characters in the **first** line.
All 4 emoji characters are expected to be selected, however, the characters in
the second line are _not_ selected.