_to_input_buf(string, len); /* blank out the pointer if necessary */ *************** *** 700,706 **** for (i = 0; i < count; i++) g_string_append(str, list[i]); ! p = str->str; len = str->len; g_string_free(str, FALSE); gdk_free_text_list(list); --- 709,715 ---- for (i = 0; i < count; i++) g_string_append(str, list[i]); ! p = (char_u *)str->str; len = str->len; g_string_free(str, FALSE); gdk_free_text_list(list); *** ../vim-5.6.73/src/gui_mac.c Thu Dec 30 10:07:36 1999 --- src/gui_mac.c Sun Apr 30 11:35:48 2000 *************** *** 1293,1298 **** --- 1403,1416 ---- add_to_input_buf(string2, 3); } + if (num == 1 && string[0] == CSI) + { + /* Insert CSI as K_CSI. Not tested! */ + string[1] = KS_EXTRA; + string[2] = KE_CSI; + num = 3; + } + add_to_input_buf(string, num); } *** ../vim-5.6.73/src/gui_riscos.c Fri May 14 15:59:20 1999 --- src/gui_riscos.c Sun Apr 16 11:58:05 2000 *************** *** 1613,1624 **** switch (a) { case 0x1e: ! return ro_press('k','h', 0); /* Home */ case 0x7f: ! return ro_press('k','D', 0); /* Delete */ default: add_to_input_buf(code, 1); ! return; } case 1: if ((a & 0xcf) == 0xcc) --- 1614,1635 ---- switch (a) { case 0x1e: ! ro_press('k','h', 0); /* Home */ ! return; case 0x7f: ! ro_press('k','D', 0); /* Delete */ ! return; ! case CSI: ! { ! /* Turn CSI into K_CSI. Untested! */ ! char_u string[3] = {CSI, KS_EXTRA, KE_CSI}; ! ! add_to_input_buf(string, 3); ! return; ! } default: add_to_input_buf(code, 1); ! return; } case 1: if ((a & 0xcf) == 0xcc) *** ../vim-5.6.73/src/gui_w32.c Wed Apr 5 16:30:51 2000 --- src/gui_w32.c Tue Apr 18 10:36:37 2000 *************** *** 10,16 **** * * GUI support for Microsoft Windows. Win32 initially; maybe Win16 later * ! * George V. Reilly wrote the original Win32 GUI. * Robert Webb reworked it to use the existing GUI stuff and added menu, * scrollbars, etc. * --- 10,16 ---- * * GUI support for Microsoft Windows. Win32 initially; maybe Win16 later * ! * George V. Reilly wrote the original Win32 GUI. * Robert Webb reworked it to use the existing GUI stuff and added menu, * scrollbars, etc. * *************** *** 813,822 **** static void _OnChar( HWND hwnd, ! UINT ch, int cRepeat) { ! char_u string[1]; /* TRACE("OnChar(%d, %c)\n", ch, ch); */ --- 813,822 ---- static void _OnChar( HWND hwnd, ! UINT ch, /* Careful: CSI arrives as 0xffffff9b */ int cRepeat) { ! char_u string[3]; /* TRACE("OnChar(%d, %c)\n", ch, ch); */ *************** *** 826,832 **** trash_input_buf(); got_int = TRUE; } ! add_to_input_buf(string, 1); } static void --- 826,841 ----