← Commit list

9443b0bc5

Denys Vlasenko
Denys Vlasenko
2025-10-07
SUCCESS Duration: 179s

Subject

vi: warn about range in ':!' command

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+4 -0
@@ -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;