Skip to content

Commit bd220aa

Browse files
committed
Line counting on windows now happen via FIND command
1 parent e950309 commit bd220aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/nerdtree/path.vim

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ function! s:Path.cacheDisplayString() abort
7070
let l:lines = 0
7171
if executable('wc')
7272
let l:lines = split(system('wc -l '.l:bufname))[0]
73+
elseif nerdtree#runningWindows()
74+
let l:lines = substitute(system('type "'.l:bufname.'" | find /c /v ""'), '\n', '', 'g')
7375
else
7476
let s:lines = readfile(l:bufname)
7577
let l:lines = 0

0 commit comments

Comments
 (0)