mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-16 15:23:50 -05:00
@@ -417,6 +417,10 @@ function! goyo#execute(bang, dim)
|
|||||||
if exists('#goyo') == 0
|
if exists('#goyo') == 0
|
||||||
call s:goyo_on(a:dim)
|
call s:goyo_on(a:dim)
|
||||||
elseif !empty(a:dim)
|
elseif !empty(a:dim)
|
||||||
|
if winnr('$') < 5
|
||||||
|
call s:goyo_off()
|
||||||
|
return goyo#execute(a:bang, a:dim)
|
||||||
|
endif
|
||||||
let dim = s:parse_arg(a:dim)
|
let dim = s:parse_arg(a:dim)
|
||||||
if !empty(dim)
|
if !empty(dim)
|
||||||
let t:goyo_dim = dim
|
let t:goyo_dim = dim
|
||||||
|
|||||||
Reference in New Issue
Block a user