Skip to content

Commit a9626a3

Browse files
author
ryanss
committed
Fix opening url links that begin at char 0 in line
Preceeding `[` was being included in url. Example comment [10318839]
1 parent db9dae9 commit a9626a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/hackernews.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def link(item_id=None, url=None, external=False):
208208
e = b[y].find("]", loc)
209209
url = b[y][a:e]
210210
else:
211-
url = b[y][loc:]
211+
url = b[y][loc+1:]
212212
y += 1
213213
while b[y].find("]") < 0:
214214
if y != start:

0 commit comments

Comments
 (0)