summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-06 17:44:46 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-06 17:44:46 +0000
commit15d0a8c77dad867b69822e2fd8f9f6bbcf765c48 (patch)
treee84faedc007f9c2b81b9056a400dccade2b947e5 /src/gui_w48.c
parentd4755bb0e04fca334675f1503bd6474b017a9bba (diff)
downloadvim-git-15d0a8c77dad867b69822e2fd8f9f6bbcf765c48.tar.gz
updated for version 7.0015v7.0015
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c10
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;
}
}