diff --git a/editors/vi.c b/editors/vi.c index 34932f60c..f48bcf514 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -2951,6 +2951,10 @@ static void colon(char *buf) else if (cmd[0] == '!') { // run a cmd int retcode; // :!ls run the + if (GOT_ADDRESS) { + status_line_bold("Range not allowed"); + goto ret; + } exp = expand_args(buf + 1); if (exp == NULL) goto ret;