Set statusline according to winwidth() for bg-less color schemes

This commit is contained in:
Junegunn Choi
2013-12-02 02:51:42 +09:00
parent 498b18a20a
commit 650ce9db19

View File

@@ -126,7 +126,6 @@ function! s:goyo_on(width)
set nonu nornu
set colorcolumn=
set statusline=\
set winwidth=1
set winheight=1
set laststatus=0
@@ -143,6 +142,8 @@ function! s:goyo_on(width)
call s:resize_pads()
call s:tranquilize()
let &statusline = repeat(' ', winwidth(0))
augroup goyo
autocmd!
autocmd BufWinLeave <buffer> call s:goyo_off()