cmd: GOTO is a no-op and doesn't output anything in interactive mode.
This commit is contained in:
parent
24aa18d914
commit
6e506eaea9
|
@ -1377,14 +1377,15 @@ void WCMD_goto (CMD_LIST **cmdList) {
|
||||||
/* Do not process any more parts of a processed multipart or multilines command */
|
/* Do not process any more parts of a processed multipart or multilines command */
|
||||||
if (cmdList) *cmdList = NULL;
|
if (cmdList) *cmdList = NULL;
|
||||||
|
|
||||||
if (param1[0] == 0x00) {
|
|
||||||
WCMD_output (WCMD_LoadMessage(WCMD_NOARG));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (context != NULL) {
|
if (context != NULL) {
|
||||||
WCHAR *paramStart = param1, *str;
|
WCHAR *paramStart = param1, *str;
|
||||||
static const WCHAR eofW[] = {':','e','o','f','\0'};
|
static const WCHAR eofW[] = {':','e','o','f','\0'};
|
||||||
|
|
||||||
|
if (param1[0] == 0x00) {
|
||||||
|
WCMD_output (WCMD_LoadMessage(WCMD_NOARG));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Handle special :EOF label */
|
/* Handle special :EOF label */
|
||||||
if (lstrcmpiW (eofW, param1) == 0) {
|
if (lstrcmpiW (eofW, param1) == 0) {
|
||||||
context -> skip_rest = TRUE;
|
context -> skip_rest = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue