diff options
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c index 79a5174ab..9a2f06d01 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -2793,8 +2793,13 @@ set_fileformat(t, opt_flags) break; } if (p != NULL) + { set_string_option_direct((char_u *)"ff", -1, (char_u *)p, OPT_FREE | opt_flags); +# ifdef FEAT_EVAL + set_option_scriptID((char_u *)"ff", current_SID); +# endif + } #ifdef FEAT_WINDOWS /* This may cause the buffer to become (un)modified. */ check_status(curbuf); |