summaryrefslogtreecommitdiffhomepage
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index fb46dc381..31b5d3e8a 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -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;
}