diff options
| author | ryanss | 2015-02-08 11:31:48 -0500 |
|---|---|---|
| committer | ryanss | 2015-02-08 11:31:48 -0500 |
| commit | 43917f2596c9c37bc41674fb602027b7236204a2 (patch) | |
| tree | 64972d0ff5f4a5d48796833b4a7094968619daf9 /plugin | |
| parent | efe1efe933daabea0e91cf79d2ddb868f4e29a70 (diff) | |
| download | vim-hn-43917f2596c9c37bc41674fb602027b7236204a2.tar.gz | |
Fix handling of Hacker News links in comments and articles
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/hackernews.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/hackernews.py b/plugin/hackernews.py index c91dce1..afbd533 100644 --- a/plugin/hackernews.py +++ b/plugin/hackernews.py @@ -128,7 +128,7 @@ def hacker_news_link(external=False): url += b[i][:b[i].find("]")] url = url.replace(" ", "").replace("\n", "") - if url.find("http://news.ycombinator.com/item?id=") == 0: + if url.find("news.ycombinator.com/item?id=") > 0: id = url[url.find("item?id=")+8:] if external: browser = webbrowser.get() |
