aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 2abaf88b8..31bc25556 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -330,7 +330,7 @@ int vi_main(int argc, char **argv)
last_status_cksum = 0;
text = NULL;
- if (ENABLE_FEATURE_VI_READONLY && strncmp(argv[0], "view", 4) == 0) {
+ if (ENABLE_FEATURE_VI_READONLY && strncmp(appliet_name, "view", 4) == 0) {
SET_READONLY_MODE(readonly_mode);
}