summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index 50c5e5939..e83ff4060 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -1794,7 +1794,7 @@ gui_mch_draw_string(
#ifdef FEAT_MBYTE
static WCHAR *unicodebuf = NULL;
static int *unicodepdy = NULL;
- int unibuflen = 0;
+ static int unibuflen = 0;
int n = 0;
#endif
HPEN hpen, old_pen;
@@ -1923,7 +1923,7 @@ gui_mch_draw_string(
break;
/* Check if the Unicode buffer exists and is big enough. Create it
- * with the same lengt as the multi-byte string, the number of wide
+ * with the same length as the multi-byte string, the number of wide
* characters is always equal or smaller. */
if ((enc_utf8
|| (enc_codepage > 0 && (int)GetACP() != enc_codepage)