mirror of
https://github.com/vbatts/bvi.git
synced 2025-08-02 23:50:28 +00:00
cleanup mixed use of tabs and spaces
still isn't 100%, but is progress Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
92a88a4b4b
commit
f62d2aa929
14 changed files with 176 additions and 176 deletions
22
comm.c
22
comm.c
|
@ -290,18 +290,18 @@ docmdline(cmdline)
|
|||
emsg(ambigous);
|
||||
return; }
|
||||
if (c_argc == 1) {
|
||||
/* change '%' to Filename */
|
||||
while ((p = strchr(c_argv[0], '%')) != NULL && *(p-1) != '\\') {
|
||||
if (name == NULL) {
|
||||
emsg("No filename@to substitute for %");
|
||||
return;
|
||||
}
|
||||
*p = '\0';
|
||||
strcpy (oldbuf, c_argv[0]);
|
||||
strcat (oldbuf, name);
|
||||
strcat (oldbuf, p + 1);
|
||||
/* change '%' to Filename */
|
||||
while ((p = strchr(c_argv[0], '%')) != NULL && *(p-1) != '\\') {
|
||||
if (name == NULL) {
|
||||
emsg("No filename@to substitute for %");
|
||||
return;
|
||||
}
|
||||
*p = '\0';
|
||||
strcpy (oldbuf, c_argv[0]);
|
||||
strcat (oldbuf, name);
|
||||
strcat (oldbuf, p + 1);
|
||||
c_argv[0] = oldbuf;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (name == NULL && c_argc != 0) name = strdup(c_argv[0]);
|
||||
if (force) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue