mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-17 07:53:41 -05:00
use strlen instead of len
This commit is contained in:
@@ -439,7 +439,7 @@ endfunction
|
||||
Oops! We forgot the cool mark for the branch component! (work with the patched font for vim-powerline)
|
||||
```vim
|
||||
function! MyFugitive()
|
||||
return exists('*fugitive#head') && len(fugitive#head()) ? '⭠ '.fugitive#head() : ''
|
||||
return exists('*fugitive#head') && strlen(fugitive#head()) ? '⭠ '.fugitive#head() : ''
|
||||
endfunction
|
||||
```
|
||||

|
||||
@@ -498,7 +498,7 @@ function! MyFilename()
|
||||
endfunction
|
||||
|
||||
function! MyFugitive()
|
||||
return &ft !~? 'vimfiler\|gundo' && exists('*fugitive#head') && len(fugitive#head()) ? '⭠ '.fugitive#head() : ''
|
||||
return &ft !~? 'vimfiler\|gundo' && exists('*fugitive#head') && strlen(fugitive#head()) ? '⭠ '.fugitive#head() : ''
|
||||
endfunction
|
||||
|
||||
function! MyFileformat()
|
||||
|
||||
Reference in New Issue
Block a user