mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 04:01:45 +08:00
Merge pull request #2545 from rcasta74/vim9script
vim9: Fix boolean check in tabline#formatters#default
This commit is contained in:
commit
91b67e3ca2
|
@ -77,7 +77,7 @@ else
|
|||
var result = buf_nr_show ? printf(buf_nr_format, bufnr) : ''
|
||||
result ..= substitute(buffer_name, '\\', '/', 'g')
|
||||
|
||||
if getbufvar(bufnr, '&modified') == 1
|
||||
if getbufvar(bufnr, '&modified')
|
||||
result ..= g:airline_symbols.modified
|
||||
endif
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue
Block a user