mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-16 07:13:50 -05:00
Set statusline according to winwidth() for bg-less color schemes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user