diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-02-05 19:48:25 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-02-05 19:48:25 +0000 |
commit | 4e2a59505ed4b5fdd540ab3582227454462b1651 (patch) | |
tree | 12038f8ae276658c04e9fcdf37086bff1b1c35a8 /src/ex_cmds2.c | |
parent | 13658318b9c2d991ca4df9b8eb72dfacfd0d6f40 (diff) |
updated for version 7.2-102v7.2.102
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 704c7abc3a..a4f60c46d4 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3013,6 +3013,8 @@ do_source(fname, check_other, is_vimrc) /* Found BOM; setup conversion, skip over BOM and recode the line. */ convert_setup(&cookie.conv, (char_u *)"utf-8", p_enc); p = string_convert(&cookie.conv, firstline + 3, NULL); + if (p == NULL) + p = vim_strsave(firstline + 3); if (p != NULL) { vim_free(firstline); |