File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
let g: loaded_vim_airline_codeowners = 1
9
9
10
10
function ! airline#extensions#codeowners#init (ext)
11
- call airline#parts#define_raw (' codeowners' , ' %{airline#extensions#codeowners#who()}' )
12
- endfunction
13
-
14
- function ! airline#extensions#codeowners#who ()
15
- return codeowners#who (bufname ())
11
+ call airline#parts#define_raw (' codeowners' , ' %{codeowners#whoBufname()}' )
16
12
endfunction
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ function! codeowners#isCodeownersFileExist()
12
12
return filereadable (s: projectDir . ' /.github/CODEOWNERS' )
13
13
endfunction
14
14
15
+ function ! codeowners#whoBufname ()
16
+ return codeowners#who (bufname ())
17
+ endfunction
18
+
15
19
function ! codeowners#who (file )
16
20
if ! has_key (s: cache , a: file )
17
21
if ! codeowners#isCodeownersFileExist ()
You can’t perform that action at this time.
0 commit comments