mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
vi: s/argv[0]/applet_name/
This commit is contained in:
parent
eaabf0675f
commit
27da707d06
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user