aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-08-22 21:25:33 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-22 23:45:48 +0200
commit8db8793503511c13c8da9e6fd9c9d0468e42f67b (patch)
treedcf59b21e39ccfc127d9b5b334164288d13386c3
parent916237d9b531e946de4a6eb1d62ac0a484d585d6 (diff)
downloadrneovim-8db8793503511c13c8da9e6fd9c9d0468e42f67b.tar.gz
rneovim-8db8793503511c13c8da9e6fd9c9d0468e42f67b.tar.bz2
rneovim-8db8793503511c13c8da9e6fd9c9d0468e42f67b.zip
vim-patch:c75dad0: runtime(netrw): Change line on `mx` if command output exists
closes: vim/vim#15550 https://github.com/vim/vim/commit/c75dad017726ae78d6d2a68d1d6cfa12e7bd29f3 Co-authored-by: yasuda <yasuda@kyoto-sr.co.jp>
-rw-r--r--runtime/autoload/netrw.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index f67133b67e..cb71d2e110 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -22,6 +22,7 @@
" 2024 Aug 02 by Vim Project: honor g:netrw_alt{o,v} for :{S,H,V}explore (#15417)
" 2024 Aug 15 by Vim Project: style changes, prevent E121 (#15501)
" 2024 Aug 22 by Vim Project: fix mf-selection highlight (#15551)
+" 2024 Aug 22 by Vim Project: adjust echo output of mx command (#15550)
" }}}
" Former Maintainer: Charles E Campbell
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
@@ -7434,7 +7435,13 @@ fun! s:NetrwMarkFileExe(islocal,enbloc)
NetrwKeepj call netrw#ErrorMsg(s:ERROR,"command<".xcmd."> failed, aborting",54)
break
else
- echo ret
+ if ret !=# ''
+ echo "\n"
+ " skip trailing new line
+ echo ret[0:-2]
+ else
+ echo ret
+ endif
endif
endfor