vi: allow writing to another file if this one is readonly
No binary (build failed)
—
(log yok)
| @@ -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; | |
| } | |