mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-10 14:31:52 +08:00
Fix the Count example in the README
This commit is contained in:
@@ -310,7 +310,7 @@ figure. You can do the following:
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
function! LinterStatus() abort
|
function! LinterStatus() abort
|
||||||
let l:counts = ale#statusline#Count()
|
let l:counts = ale#statusline#Count(bufnr(''))
|
||||||
|
|
||||||
let l:all_errors = l:counts.error + l:counts.style_error
|
let l:all_errors = l:counts.error + l:counts.style_error
|
||||||
let l:all_non_errors = l:counts.total - l:all_errors
|
let l:all_non_errors = l:counts.total - l:all_errors
|
||||||
|
|||||||
Reference in New Issue
Block a user