+3
-1
@@ -228,7 +228,9 @@ extend_url(Screen *screen, Line *line, index_type *x, index_type *y, char_type s
|
||||
while(count++ < 10) {
|
||||
if (*x != line->xnum - 1) break;
|
||||
line = screen_visual_line(screen, *y + 1);
|
||||
if (!line) break; // we deliberately allow non-continued lines as some programs, like mutt split URLs with newlines at line boundaries
|
||||
if (!line) break;
|
||||
// we deliberately allow non-continued lines as some programs, like
|
||||
// mutt split URLs with newlines at line boundaries
|
||||
index_type new_x = line_url_end_at(line, 0, false, sentinel);
|
||||
if (!new_x) break;
|
||||
*y += 1; *x = new_x;
|
||||
|
||||
@@ -20,7 +20,7 @@ static inline bool
|
||||
can_strip_from_end_of_url(uint32_t ch) {
|
||||
// remove trailing punctuation
|
||||
return (
|
||||
(is_P_category(ch) && ch != '/') ||
|
||||
(is_P_category(ch) && ch != '/' && ch != '&' && ch != '-') ||
|
||||
ch == '>'
|
||||
) ? true : false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user