mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
url-mode: make the end coordinate *inclusive*
This commit is contained in:
parent
d6ea2a4bdc
commit
a578faf494
1 changed files with 5 additions and 0 deletions
|
|
@ -269,6 +269,11 @@ auto_detected(struct terminal *term, enum url_action action)
|
|||
bool done = false;
|
||||
struct coord end = {c, r};
|
||||
|
||||
if (--end.col < 0) {
|
||||
end.row--;
|
||||
end.col = term->cols - 1;
|
||||
}
|
||||
|
||||
do {
|
||||
switch (url[len - 1]) {
|
||||
case L'.': case L',': case L':': case L';': case L'?':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue