We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wc
1 parent bd220aa commit 7c27fb0Copy full SHA for 7c27fb0
lib/nerdtree/path.vim
@@ -69,7 +69,7 @@ function! s:Path.cacheDisplayString() abort
69
let l:bufname = self.str({'format': 'Edit'})
70
let l:lines = 0
71
if executable('wc')
72
- let l:lines = split(system('wc -l '.l:bufname))[0]
+ 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')
75
else
0 commit comments