From a9626a3d74b667f0772d1479bed29339871b9ebf Mon Sep 17 00:00:00 2001 From: ryanss Date: Sat, 26 Sep 2015 23:59:00 -0400 Subject: Fix opening url links that begin at char 0 in line Preceeding `[` was being included in url. Example comment [10318839] --- ftplugin/hackernews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py index 19bdf89..84acbea 100644 --- a/ftplugin/hackernews.py +++ b/ftplugin/hackernews.py @@ -208,7 +208,7 @@ def link(item_id=None, url=None, external=False): e = b[y].find("]", loc) url = b[y][a:e] else: - url = b[y][loc:] + url = b[y][loc+1:] y += 1 while b[y].find("]") < 0: if y != start: -- cgit v1.2.3