New option: g:startify_fortune_use_unicode

References #261.
This commit is contained in:
Marco Hinz 2017-01-10 14:00:44 +01:00
parent af521fa617
commit 89bf0a5c24
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F
2 changed files with 18 additions and 2 deletions

View file

@ -127,7 +127,7 @@ endfunction
" Function: s:draw_box {{{1
function! s:draw_box(lines) abort
let longest_line = max(map(copy(a:lines), 'len(v:val)'))
if &encoding == 'utf-8'
if &encoding == 'utf-8' && get(g:, 'startify_fortune_use_unicode')
let top_left_corner = '╭'
let top_right_corner = '╮'
let bottom_left_corner = '╰'