diff options
| author | ryanss | 2015-03-20 23:59:00 -0400 |
|---|---|---|
| committer | ryanss | 2015-03-20 23:59:00 -0400 |
| commit | 85c1a6052bbc64e4cae33df6b84e76044be4c4c4 (patch) | |
| tree | d3aaf7a87c6ce880bd965a3a2958713d4fb231a8 /ftplugin | |
| parent | 972baa34d26f283a10a0cc86a11ed9211ad9c949 (diff) | |
| download | vim-hn-85c1a6052bbc64e4cae33df6b84e76044be4c4c4.tar.gz | |
Clear OP username syntax match when loading new item
Diffstat (limited to 'ftplugin')
| -rw-r--r-- | ftplugin/hackernews.py | 2 |
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: |
