Merge pull request #688 from changyuheng/pr-column-number
Replace column number with virtual column number
This commit is contained in:
commit
446397e006
|
@ -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