mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-29 04:33:40 +08:00
commit
d6032c876c
|
@ -225,10 +225,11 @@ endfunction
|
||||||
function! NERDTreeListNode()
|
function! NERDTreeListNode()
|
||||||
let treenode = g:NERDTreeFileNode.GetSelected()
|
let treenode = g:NERDTreeFileNode.GetSelected()
|
||||||
if !empty(treenode)
|
if !empty(treenode)
|
||||||
if has("osx")
|
let s:uname = system("uname")
|
||||||
|
let stat_cmd = 'stat -c "%s" '
|
||||||
|
|
||||||
|
if s:uname =~? "Darwin"
|
||||||
let stat_cmd = 'stat -f "%z" '
|
let stat_cmd = 'stat -f "%z" '
|
||||||
else
|
|
||||||
let stat_cmd = 'stat -c "%s" '
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let cmd = 'size=$(' . stat_cmd . shellescape(treenode.path.str()) . ') && ' .
|
let cmd = 'size=$(' . stat_cmd . shellescape(treenode.path.str()) . ') && ' .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user