diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-09-06 17:44:46 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-09-06 17:44:46 +0000 |
commit | 15d0a8c77dad867b69822e2fd8f9f6bbcf765c48 (patch) | |
tree | e84faedc007f9c2b81b9056a400dccade2b947e5 /src/main.c | |
parent | d4755bb0e04fca334675f1503bd6474b017a9bba (diff) | |
download | vim-15d0a8c77dad867b69822e2fd8f9f6bbcf765c48.zip |
updated for version 7.0015
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 0c8701ad9..0f63d7848 100644 --- a/src/main.c +++ b/src/main.c @@ -1065,6 +1065,16 @@ scripterror: 2 /* add buffer number now and use curbuf */ #endif ); + +#if defined(FEAT_MBYTE) && defined(WIN32) + { + extern void used_file_arg(char *, int, int); + + /* Remember this argument has been added to the argument list. + * Needed when 'encoding' is changed. */ + used_file_arg(argv[0], literal, full_path); + } +#endif } /* @@ -1133,6 +1143,17 @@ scripterror: #endif fname = alist_name(&GARGLIST[0]); } + +#if defined(WIN32) && defined(FEAT_MBYTE) + { + extern void set_alist_count(void); + + /* Remember the number of entries in the argument list. If it changes + * we don't react on setting 'encoding'. */ + set_alist_count(); + } +#endif + if (GARGCOUNT > 1) printf(_("%d files to edit\n"), GARGCOUNT); #ifdef MSWIN @@ -1756,7 +1777,7 @@ scripterror: ml_recover(); if (curbuf->b_ml.ml_mfp == NULL) /* failed */ getout(1); - do_modelines(); /* do modelines */ + do_modelines(FALSE); /* do modelines */ } else { |