refactor(options): remove fileformat macros

This commit is contained in:
Famiu Haque
2024-11-03 16:36:26 +06:00
parent 079e5f4f9b
commit cbc9a03f58
5 changed files with 14 additions and 25 deletions

View File

@@ -5105,13 +5105,13 @@ void buf_copy_options(buf_T *buf, int flags)
buf->b_p_fenc = xstrdup(p_fenc);
switch (*p_ffs) {
case 'm':
buf->b_p_ff = xstrdup(FF_MAC);
buf->b_p_ff = xstrdup("mac");
break;
case 'd':
buf->b_p_ff = xstrdup(FF_DOS);
buf->b_p_ff = xstrdup("dos");
break;
case 'u':
buf->b_p_ff = xstrdup(FF_UNIX);
buf->b_p_ff = xstrdup("unix");
break;
default:
buf->b_p_ff = xstrdup(p_ff);
@@ -6240,13 +6240,13 @@ void set_fileformat(int eol_style, int opt_flags)
switch (eol_style) {
case EOL_UNIX:
p = FF_UNIX;
p = "unix";
break;
case EOL_MAC:
p = FF_MAC;
p = "mac";
break;
case EOL_DOS:
p = FF_DOS;
p = "dos";
break;
}