Skip to content

Commit 2960a85

Browse files
author
ryanss
committed
Set default story list to prevent exception
Exception only occurs when calling `:edit .hackernews` instead of properly calling the `:HackerNews` command.
1 parent ccd86bd commit 2960a85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ftplugin/hackernews.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ else
1717
finish
1818
endif
1919

20+
21+
if !exists("g:hackernews_marks")
22+
let g:hackernews_stories = 'news'
23+
endif
24+
2025
if !exists("g:hackernews_marks")
2126
let g:hackernews_marks = {}
2227
endif

0 commit comments

Comments
 (0)