← Commit list

7b5cbfd6d

Alison Winters
Alison Winters
2021-04-13
SUCCESS Duration: 153s

Subject

vi: allow writing to another file if this one is readonly

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+1 -1
@@ -2938,7 +2938,7 @@ static void colon(char *buf)
fn = args;
}
# if ENABLE_FEATURE_VI_READONLY
- if (readonly_mode && !useforce) {
+ else if (readonly_mode && !useforce) {
status_line_bold("'%s' is read only", fn);
goto ret;
}