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/gui_w48.c | |
parent | d4755bb0e04fca334675f1503bd6474b017a9bba (diff) | |
download | vim-git-15d0a8c77dad867b69822e2fd8f9f6bbcf765c48.tar.gz |
updated for version 7.0015v7.0015
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r-- | src/gui_w48.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c index 761c1af16..7b8d8de30 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -3376,6 +3376,16 @@ get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree) { if (pnew != NULL) *pnew++ = *p; +#ifdef FEAT_MBYTE + /* Can't use mb_* functions, because 'encoding' is not + * initialized yet here. */ + if (IsDBCSLeadByte(*p)) + { + ++p; + if (pnew != NULL) + *pnew++ = *p; + } +#endif ++p; } } |