nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 876283b07cadba4f607ae34430b3e08db7a42365
parent f4ff6dcf84bff73e6cc0e49410e28d0fb65ad73a
Author: Jason Franklin <j_fra@fastmail.us>
Date:   Sat, 19 Aug 2017 09:29:46 -0400

Improve display of shell output from menu command

This small change reverts to the previous method of breaking shell
output into lines.  The reason for this is to avoid the printing of
trailing carriage return characters on Windows.

Diffstat:
Mnerdtree_plugin/fs_menu.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim
@@ -228,7 +228,7 @@ function! NERDTreeListNodeWin32()
                     \ . shellescape(l:node.path.str())
                     \ . ' | FINDSTR "^[012][0-9]/[0-3][0-9]/[12][0-9][0-9][0-9]"'
 
-        let l:metadata = systemlist(l:command)
+        let l:metadata = split(system(l:command), "\n")
 
         if v:shell_error == 0
             call nerdtree#echo(l:metadata[0])
@@ -238,7 +238,7 @@ function! NERDTreeListNodeWin32()
 
         let &shell = l:save_shell
 
-        if exists('+shellslash')
+        if exists('l:save_shellslash')
             let &shellslash = l:save_shellslash
         endif