We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ffa62f commit df0f1dbCopy full SHA for df0f1db
autoload/startify.vim
@@ -442,7 +442,7 @@ endfunction
442
function! startify#center(lines) abort
443
let longest_line = max(map(copy(a:lines), 'strwidth(v:val)'))
444
return map(copy(a:lines),
445
- \ 'repeat(" ", (&columns / 2) - (longest_line / 2) - 1) . v:val')
+ \ 'repeat(" ", (winwidth(0) / 2) - (longest_line / 2) - 1) . v:val')
446
endfunction
447
448
" Function: s:get_lists {{{1
0 commit comments