---
 editors/vi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editors/vi.c b/editors/vi.c
index abc0aeae8..8bb126d14 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2824,7 +2824,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;
                }
--
2.30.1

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to