We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab5e01 commit 34ede3eCopy full SHA for 34ede3e
autoload/run.vim
@@ -119,11 +119,9 @@ function! run#Run(cmd, ...) abort
119
120
" run job as shell command to tempfile w/ details
121
let date_cmd = 'date +"' . s:run_timestamp_format . '"'
122
- let startline = has('nvim') ? 1 : 2
123
call writefile(split(a:cmd, "\n"), currentcmdpath)
124
call writefile([
125
- \ 'printf "COMMAND: "',
126
- \ 'cat ' . currentcmdpath . " | sed '".startline.",${s/^/ /g}'",
+ \ 'printf "COMMAND: " && cat ' . currentcmdpath . " | sed '2,$s/^/ /g'",
127
\ 'echo WORKDIR: ' . getcwd(),
128
\ 'STARTED=$('.date_cmd.')',
129
\ 'echo "STARTED: $STARTED"',
0 commit comments