summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index 3b96c083e..3edc0a7b1 100644
--- a/src/url.c
+++ b/src/url.c
@@ -1220,7 +1220,7 @@ url_try_text (memory_pool_t *pool, const gchar *begin, gsize len, gint *res, gch
*url_str = NULL;
}
if (res) {
- *res = strlen (matcher->pattern);
+ *res = (pos - begin) + strlen (matcher->pattern);
}
return TRUE;
}