mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-28 22:56:52 +08:00
rename variable so it's more obvious
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
" MIT license. Copyright (c) 2013 Bailey Ling.
|
||||
" MIT License. Copyright (c) 2013 Bailey Ling.
|
||||
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||
|
||||
if !exists('g:airline#extensions#csv#column_display')
|
||||
let g:airline#extensions#csv#column_display = 'Number'
|
||||
endif
|
||||
|
||||
function! airline#extensions#csv#apply()
|
||||
if &ft ==# "csv" && exists("*CSV_WCol")
|
||||
if get(g:, 'airline#extensions#csv#column_identify', '') ==# 'Name'
|
||||
if get(g:, 'airline#extensions#csv#column_display', '') ==# 'Name'
|
||||
let column = '['.CSV_WCol('Name').CSV_WCol().']'
|
||||
else
|
||||
let column = '['.CSV_WCol().']'
|
||||
|
||||
Reference in New Issue
Block a user