mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 15:33:49 -05:00
s/winwidth('.')/winwidth(0)/g
This commit is contained in:
@@ -692,15 +692,15 @@ For users who uses lots of plugins:
|
||||
endfunction
|
||||
|
||||
function! MyFileformat()
|
||||
return winwidth('.') > 70 ? &fileformat : ''
|
||||
return winwidth(0) > 70 ? &fileformat : ''
|
||||
endfunction
|
||||
|
||||
function! MyFiletype()
|
||||
return winwidth('.') > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : ''
|
||||
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : ''
|
||||
endfunction
|
||||
|
||||
function! MyFileencoding()
|
||||
return winwidth('.') > 70 ? (strlen(&fenc) ? &fenc : &enc) : ''
|
||||
return winwidth(0) > 70 ? (strlen(&fenc) ? &fenc : &enc) : ''
|
||||
endfunction
|
||||
|
||||
function! MyMode()
|
||||
@@ -713,7 +713,7 @@ For users who uses lots of plugins:
|
||||
\ &ft == 'unite' ? 'Unite' :
|
||||
\ &ft == 'vimfiler' ? 'VimFiler' :
|
||||
\ &ft == 'vimshell' ? 'VimShell' :
|
||||
\ winwidth('.') > 60 ? lightline#mode() : ''
|
||||
\ winwidth(0) > 60 ? lightline#mode() : ''
|
||||
endfunction
|
||||
|
||||
function! CtrlPMark()
|
||||
|
||||
Reference in New Issue
Block a user