mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Compare commits
7 Commits
e78a7eda20
...
eec6ea3875
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eec6ea3875 | ||
|
|
81eca99486 | ||
|
|
f706e7c486 | ||
|
|
d7edaf8fd0 | ||
|
|
3cb60641e7 | ||
|
|
f083d765d8 | ||
|
|
45b6334faf |
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
vim:
|
||||
- v9.1.0000
|
||||
- v9.0.0000
|
||||
- v8.2.1000
|
||||
- v8.2.0000
|
||||
|
||||
17
test/extensions_branch.vimspec
Normal file
17
test/extensions_branch.vimspec
Normal file
@@ -0,0 +1,17 @@
|
||||
Describe branch.vim
|
||||
Before
|
||||
call mkdir("branch-test")
|
||||
:lcd branch-test
|
||||
!git init
|
||||
End
|
||||
|
||||
It Match branch name main
|
||||
Assert Equals(airline#extensions#branch#get_head(), "main")
|
||||
End
|
||||
|
||||
After
|
||||
call delete("branch-test", "rf")
|
||||
:lcd ..
|
||||
End
|
||||
End
|
||||
|
||||
@@ -4,14 +4,16 @@ Describe themes.vim
|
||||
highlight clear Normal
|
||||
End
|
||||
|
||||
It should extract correct colors
|
||||
call airline#highlighter#reset_hlcache()
|
||||
highlight Foo ctermfg=1 ctermbg=2
|
||||
let colors = airline#themes#get_highlight('Foo')
|
||||
Assert Equals(colors[0], 'NONE')
|
||||
Assert Equals(colors[1], 'NONE')
|
||||
Assert Equals(colors[2], '1')
|
||||
Assert Equals(colors[3], '2')
|
||||
It should extract correct colors with No termguicolors
|
||||
if !exists("+termguicolors")
|
||||
call airline#highlighter#reset_hlcache()
|
||||
highlight Foo ctermfg=1 ctermbg=2
|
||||
let colors = airline#themes#get_highlight('Foo')
|
||||
Assert Equals(colors[0], 'NONE')
|
||||
Assert Equals(colors[1], 'NONE')
|
||||
Assert Equals(colors[2], '1')
|
||||
Assert Equals(colors[3], '2')
|
||||
endif
|
||||
End
|
||||
|
||||
if exists("+termguicolors")
|
||||
|
||||
Reference in New Issue
Block a user