summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/vi.c4
1 files changed, 4 insertions, 0 deletions
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 <cmd>
+ if (GOT_ADDRESS) {
+ status_line_bold("Range not allowed");
+ goto ret;
+ }
exp = expand_args(buf + 1);
if (exp == NULL)
goto ret;