Accept '.foo' and 'foo' as value for the ext option
This commit is contained in:
		| @@ -265,6 +265,11 @@ function! s:validate_settings() | |||||||
|  |  | ||||||
|     let wiki_settings['template_path'] = s:normalize_path(wiki_settings['template_path']) |     let wiki_settings['template_path'] = s:normalize_path(wiki_settings['template_path']) | ||||||
|     let wiki_settings['diary_rel_path'] = s:normalize_path(wiki_settings['diary_rel_path']) |     let wiki_settings['diary_rel_path'] = s:normalize_path(wiki_settings['diary_rel_path']) | ||||||
|  |  | ||||||
|  |     let ext = wiki_settings['ext'] | ||||||
|  |     if !empty(ext) && ext[0] != '.' | ||||||
|  |       let wiki_settings['ext'] = '.' . ext | ||||||
|  |     endif | ||||||
|   endfor |   endfor | ||||||
| endfunction | endfunction | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user