mirror of https://github.com/tildeclub/ex-vi.git
* The 'substitute' ex command can now be abbreviated as 'sub', 'subst' etc.
This commit is contained in:
parent
aada6fd740
commit
6afc996872
1
Changes
1
Changes
|
@ -39,6 +39,7 @@ Release ...
|
|||
regular file.
|
||||
* Ex does not exit on errors immediately anymore if standard input is not
|
||||
a terminal but a pipe or regular file.
|
||||
* The 'substitute' ex command can now be abbreviated as 'sub', 'subst' etc.
|
||||
|
||||
Release 1/19/05
|
||||
* The last release erroneously made 'X' work like 'x' in visual mode. It now
|
||||
|
|
12
ex_cmds.c
12
ex_cmds.c
|
@ -73,7 +73,7 @@
|
|||
|
||||
#ifndef lint
|
||||
#ifdef DOSCCS
|
||||
static char sccsid[] = "@(#)ex_cmds.c 1.20 (gritter) 2/17/05";
|
||||
static char sccsid[] = "@(#)ex_cmds.c 1.21 (gritter) 2/17/05";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -675,7 +675,12 @@ recovnext:
|
|||
tail("stop");
|
||||
goto suspend;
|
||||
case 'u':
|
||||
tail("suspend");
|
||||
getchar();
|
||||
if (peekchar() == 'b') {
|
||||
tail2of("substitute");
|
||||
goto substitute;
|
||||
}
|
||||
tail2of("suspend");
|
||||
suspend:
|
||||
if (!ldisc)
|
||||
error(catgets(catd, 1, 24,
|
||||
|
@ -697,10 +702,11 @@ suspend:
|
|||
/* ~ */
|
||||
/* substitute */
|
||||
case '&':
|
||||
case '~':
|
||||
case '~':
|
||||
Command = "substitute";
|
||||
if (c == 's')
|
||||
tail(Command);
|
||||
substitute:
|
||||
vmacchng(0);
|
||||
if (!substitute(c))
|
||||
pflag = 0;
|
||||
|
|
Loading…
Reference in New Issue