summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryanss2015-09-26 23:59:00 -0400
committerryanss2015-09-26 23:59:00 -0400
commita9626a3d74b667f0772d1479bed29339871b9ebf (patch)
treed988c349e54d72ef7d4f97c96f8110bb0e61b392
parentdb9dae9db16473b860c0a1b7ae3756f1a8781f5a (diff)
downloadvim-hn-a9626a3d74b667f0772d1479bed29339871b9ebf.tar.gz
Fix opening url links that begin at char 0 in line
Preceeding `[` was being included in url. Example comment [10318839]
-rw-r--r--ftplugin/hackernews.py2
1 files changed, 1 insertions, 1 deletions
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: