simplified the CountE function

cleanup for HTML comment tag checks
This commit is contained in:
Eric Davis
2020-04-18 21:47:22 -07:00
parent 5cdf3c2ac1
commit f755285cf3
2 changed files with 8 additions and 16 deletions

View File

@@ -50,13 +50,7 @@ function! s:Max(list) "{{{2
endfunction
function! s:CountE(list) "{{{2
let result = 0
for item in a:list
if empty(item)
let result += 1
endif
endfor
return result
return len(filter(copy(a:list), {_,l -> empty(l)}))
endfunction
function! s:CountNE(list) "{{{2