mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0845: shell command with just space gives strange error
Problem: Shell command with just space gives strange error. Solution: Skip white space at start of the argument. (Christian Brabandt, Shane-XB-Qian, closes #11515, closes #11495)
This commit is contained in:
committed by
Bram Moolenaar
parent
7b224fdf4a
commit
4e7590ec00
@@ -899,11 +899,13 @@ do_bang(
|
||||
}
|
||||
|
||||
/*
|
||||
* Try to find an embedded bang, like in :!<cmd> ! [args]
|
||||
* (:!! is indicated by the 'forceit' variable)
|
||||
* Try to find an embedded bang, like in ":!<cmd> ! [args]"
|
||||
* ":!!" is indicated by the 'forceit' variable.
|
||||
*/
|
||||
ins_prevcmd = forceit;
|
||||
trailarg = arg;
|
||||
|
||||
// Skip leading white space to avoid a strange error with some shells.
|
||||
trailarg = skipwhite(arg);
|
||||
do
|
||||
{
|
||||
len = (int)STRLEN(trailarg) + 1;
|
||||
|
Reference in New Issue
Block a user