Skip to content

Commit c75dad0

Browse files
KSR-Yasudachrisbra
authored andcommitted
runtime(netrw): Change line on mx if command output exists
closes: #15550 Signed-off-by: yasuda <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 38cfa2b commit c75dad0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

runtime/autoload/netrw.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
" 2024 Aug 02 by Vim Project: honor g:netrw_alt{o,v} for :{S,H,V}explore (#15417)
2323
" 2024 Aug 15 by Vim Project: style changes, prevent E121 (#15501)
2424
" 2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551)
25+
" 2024 Aug 22 by Vim Project: adjust echo output of mx command (#15550)
2526
" }}}
2627
" Former Maintainer: Charles E Campbell
2728
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -7497,7 +7498,13 @@ fun! s:NetrwMarkFileExe(islocal,enbloc)
74977498
NetrwKeepj call netrw#ErrorMsg(s:ERROR,"command<".xcmd."> failed, aborting",54)
74987499
break
74997500
else
7500-
echo ret
7501+
if ret !=# ''
7502+
echo "\n"
7503+
" skip trailing new line
7504+
echo ret[0:-2]
7505+
else
7506+
echo ret
7507+
endif
75017508
endif
75027509
endfor
75037510

0 commit comments

Comments
 (0)