diff options
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index e3df559c49..2ac1abeeba 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -837,10 +837,9 @@ set_option_default ( } else { /* P_BOOL */ *(int *)varp = (int)(intptr_t)options[opt_idx].def_val[dvi]; #ifdef UNIX - // 'modeline' defaults to off for root - if (options[opt_idx].indir == PV_ML && getuid() == 0) { - *(int *)varp = false; - } + /* 'modeline' defaults to off for root */ + if (options[opt_idx].indir == PV_ML && getuid() == ROOT_UID) + *(int *)varp = FALSE; #endif /* May also set global value for local option. */ if (both) |