Skip to content

Commit 7c27fb0

Browse files
committed
Added quotation to the line count wc command
1 parent bd220aa commit 7c27fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nerdtree/path.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function! s:Path.cacheDisplayString() abort
6969
let l:bufname = self.str({'format': 'Edit'})
7070
let l:lines = 0
7171
if executable('wc')
72-
let l:lines = split(system('wc -l '.l:bufname))[0]
72+
let l:lines = split(system('wc -l "'.l:bufname.'"'))[0]
7373
elseif nerdtree#runningWindows()
7474
let l:lines = substitute(system('type "'.l:bufname.'" | find /c /v ""'), '\n', '', 'g')
7575
else

0 commit comments

Comments
 (0)