Avoid unset w:startify_section_header_lines

Change w:startify_section_header_lines to b: to avoid it being unset on :split
and similar commands.

References #137.
This commit is contained in:
Marco Hinz 2014-12-17 12:57:01 +01:00
parent 18cc9ae8cc
commit a8657753d6
2 changed files with 5 additions and 5 deletions

View file

@ -35,8 +35,8 @@ if exists('g:startify_custom_footer')
execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'
endif
if exists('w:startify_section_header_lines')
for line in w:startify_section_header_lines
if exists('b:startify_section_header_lines')
for line in b:startify_section_header_lines
execute 'syntax region StartifySection start=/\%'. line .'l/ end=/$/'
endfor
endif