Skip to content

Commit b515dc0

Browse files
author
ryanss
committed
Fix syntax highlighting issues
1 parent ae9946f commit b515dc0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ftplugin/hackernews.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def link(external=False):
163163
item_id = url[url.find("item?id=")+8:]
164164

165165
if item_id:
166-
print(item_id)
167166
if external:
168167
browser = webbrowser.get()
169168
browser.open("https://news.ycombinator.com/item?id="+item_id)

plugin/hackernews.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ filetype plugin on
1414
" Load ftplugin when opening .hackernews buffer
1515
au! BufRead,BufNewFile *.hackernews set filetype=hackernews
1616

17+
" Prevent syntax highlighting issues in long comment threads with code blocks
18+
au! BufEnter *.hackernews syntax sync fromstart
19+
1720
function! HackerNews(...)
1821
if a:0 > 0
1922
let available_lists = ['news', 'newest', 'ask', 'show', 'shownew',

0 commit comments

Comments
 (0)