mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-11 12:47:44 +08:00
Replace column number with virtual column number
This commit is contained in:
parent
13ee9f456a
commit
6d7996ff1b
|
@ -105,7 +105,7 @@ function! airline#init#sections()
|
|||
let g:airline_section_y = airline#section#create_right(['ffenc'])
|
||||
endif
|
||||
if !exists('g:airline_section_z')
|
||||
let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3c '])
|
||||
let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3v '])
|
||||
endif
|
||||
if !exists('g:airline_section_warning')
|
||||
let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace'])
|
||||
|
|
|
@ -44,7 +44,7 @@ describe 'init sections'
|
|||
it 'section z should be line numbers'
|
||||
Expect g:airline_section_z =~ '%3p%%'
|
||||
Expect g:airline_section_z =~ '%4l'
|
||||
Expect g:airline_section_z =~ '%3c'
|
||||
Expect g:airline_section_z =~ '%3v'
|
||||
end
|
||||
|
||||
it 'should not redefine sections already defined'
|
||||
|
|
Loading…
Reference in New Issue
Block a user