commit 08db3a0eea7f7f28984ed029cb06db7ecc32c842 parent a053179d6afe9c9272eb44f3d9ed9f2fe21703aa Author: Bubba <rob@stechstudio.com> Date: Fri, 15 Jun 2018 12:02:58 -0400 Do not need to check for unix os here. Diffstat:
| M | nerdtree_plugin/fs_menu.vim | | | 11 | +++++------ |
1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim @@ -225,12 +225,11 @@ endfunction function! NERDTreeListNode() let treenode = g:NERDTreeFileNode.GetSelected() if !empty(treenode) - if has("unix") - let s:uname = system("uname") - let stat_cmd = 'stat -c "%s" ' - if s:uname =~? "Darwin" - let stat_cmd = 'stat -f "%z" ' - endif + let s:uname = system("uname") + let stat_cmd = 'stat -c "%s" ' + + if s:uname =~? "Darwin" + let stat_cmd = 'stat -f "%z" ' endif let cmd = 'size=$(' . stat_cmd . shellescape(treenode.path.str()) . ') && ' .
