From 85c1a6052bbc64e4cae33df6b84e76044be4c4c4 Mon Sep 17 00:00:00 2001 From: ryanss Date: Fri, 20 Mar 2015 23:59:00 -0400 Subject: Clear OP username syntax match when loading new item --- ftplugin/hackernews.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftplugin') 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: -- cgit v1.2.3