summaryrefslogtreecommitdiff
path: root/ftplugin/hackernews.py
diff options
context:
space:
mode:
authorryanss2015-03-20 23:59:00 -0400
committerryanss2015-03-20 23:59:00 -0400
commit85c1a6052bbc64e4cae33df6b84e76044be4c4c4 (patch)
treed3aaf7a87c6ce880bd965a3a2958713d4fb231a8 /ftplugin/hackernews.py
parent972baa34d26f283a10a0cc86a11ed9211ad9c949 (diff)
downloadvim-hn-85c1a6052bbc64e4cae33df6b84e76044be4c4c4.tar.gz
Clear OP username syntax match when loading new item
Diffstat (limited to 'ftplugin/hackernews.py')
-rw-r--r--ftplugin/hackernews.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py
index 65938ae..0f09091 100644
--- a/ftplugin/hackernews.py
+++ b/ftplugin/hackernews.py
@@ -206,6 +206,8 @@ def link(external=False):
else:
print_comments(item['comments'])
# Highlight OP username in comment titles
+ if 'level' not in item:
+ vim.command("syn clear Question")
vim.command("syn match Question /%s/ contained" % item['user'])
elif url: