Changeset 5f4a45c9 for patches/vim-7.2-branch_update-6.patch
- Timestamp:
- Feb 3, 2009, 9:27:46 AM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 51fa34f
- Parents:
- ef1a894
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
patches/vim-7.2-branch_update-6.patch
ref1a894 r5f4a45c9 1 1 Submitted By: Jim Gifford (jim at cross-lfs dot org) 2 Date: 01- 19-20092 Date: 01-31-2009 3 3 Initial Package Version: 7.2 4 4 Origin: Upstream 5 5 Upstream Status: Applied 6 Description: Contains all upstream patches up to 7.2.0 846 Description: Contains all upstream patches up to 7.2.093 7 7 The following patches were skipped 8 007 036 041 049 071 072 074 8 007 036 041 049 071 072 074 088 089 093 9 9 10 10 diff -Naur vim72.orig/Filelist vim72/Filelist 11 11 --- vim72.orig/Filelist 2008-07-06 11:02:23.000000000 -0700 12 +++ vim72/Filelist 2009-01- 19 00:08:05.000000000-080012 +++ vim72/Filelist 2009-01-31 15:33:59.649856405 -0800 13 13 @@ -285,6 +285,7 @@ 14 14 src/proto/os_win32.pro \ … … 21 21 diff -Naur vim72.orig/runtime/doc/cmdline.txt vim72/runtime/doc/cmdline.txt 22 22 --- vim72.orig/runtime/doc/cmdline.txt 2008-08-09 07:22:59.000000000 -0700 23 +++ vim72/runtime/doc/cmdline.txt 2009-01- 19 00:08:30.000000000-080023 +++ vim72/runtime/doc/cmdline.txt 2009-01-31 15:34:23.083470597 -0800 24 24 @@ -1,4 +1,4 @@ 25 25 -*cmdline.txt* For Vim version 7.2. Last change: 2008 Jul 29 … … 80 80 diff -Naur vim72.orig/runtime/doc/eval.txt vim72/runtime/doc/eval.txt 81 81 --- vim72.orig/runtime/doc/eval.txt 2008-08-09 07:22:59.000000000 -0700 82 +++ vim72/runtime/doc/eval.txt 2009-01- 19 00:10:10.000000000-080082 +++ vim72/runtime/doc/eval.txt 2009-01-31 15:35:55.361836011 -0800 83 83 @@ -1,4 +1,4 @@ 84 84 -*eval.txt* For Vim version 7.2. Last change: 2008 Aug 09 … … 200 200 diff -Naur vim72.orig/runtime/doc/netbeans.txt vim72/runtime/doc/netbeans.txt 201 201 --- vim72.orig/runtime/doc/netbeans.txt 2008-08-09 07:22:59.000000000 -0700 202 +++ vim72/runtime/doc/netbeans.txt 2009-01- 19 00:10:45.000000000-0800202 +++ vim72/runtime/doc/netbeans.txt 2009-01-31 15:36:29.096162872 -0800 203 203 @@ -1,4 +1,4 @@ 204 204 -*netbeans.txt* For Vim version 7.2. Last change: 2008 Jun 28 … … 222 222 diff -Naur vim72.orig/runtime/doc/options.txt vim72/runtime/doc/options.txt 223 223 --- vim72.orig/runtime/doc/options.txt 2008-08-09 07:22:59.000000000 -0700 224 +++ vim72/runtime/doc/options.txt 2009-01- 19 00:09:28.000000000-0800224 +++ vim72/runtime/doc/options.txt 2009-01-31 15:35:15.943118033 -0800 225 225 @@ -1,4 +1,4 @@ 226 226 -*options.txt* For Vim version 7.2. Last change: 2008 Aug 06 … … 242 242 diff -Naur vim72.orig/runtime/doc/spell.txt vim72/runtime/doc/spell.txt 243 243 --- vim72.orig/runtime/doc/spell.txt 2008-08-09 07:23:00.000000000 -0700 244 +++ vim72/runtime/doc/spell.txt 2009-01- 19 00:09:54.000000000 -0800244 +++ vim72/runtime/doc/spell.txt 2009-01-31 15:35:40.064779160 -0800 245 245 @@ -1,4 +1,4 @@ 246 246 -*spell.txt* For Vim version 7.2. Last change: 2008 Jun 21 … … 372 372 diff -Naur vim72.orig/runtime/doc/starting.txt vim72/runtime/doc/starting.txt 373 373 --- vim72.orig/runtime/doc/starting.txt 2008-08-09 07:23:00.000000000 -0700 374 +++ vim72/runtime/doc/starting.txt 2009-01- 19 00:08:31.000000000-0800374 +++ vim72/runtime/doc/starting.txt 2009-01-31 15:34:23.087472832 -0800 375 375 @@ -1,4 +1,4 @@ 376 376 -*starting.txt* For Vim version 7.2. Last change: 2008 Jun 21 … … 434 434 diff -Naur vim72.orig/runtime/doc/usr_21.txt vim72/runtime/doc/usr_21.txt 435 435 --- vim72.orig/runtime/doc/usr_21.txt 2008-08-09 07:23:01.000000000 -0700 436 +++ vim72/runtime/doc/usr_21.txt 2009-01- 19 00:08:31.000000000-0800436 +++ vim72/runtime/doc/usr_21.txt 2009-01-31 15:34:23.087472832 -0800 437 437 @@ -1,4 +1,4 @@ 438 438 -*usr_21.txt* For Vim version 7.2. Last change: 2007 May 01 … … 501 501 diff -Naur vim72.orig/runtime/scripts.vim vim72/runtime/scripts.vim 502 502 --- vim72.orig/runtime/scripts.vim 2008-08-08 15:27:21.000000000 -0700 503 +++ vim72/runtime/scripts.vim 2009-01- 19 00:07:18.000000000-0800503 +++ vim72/runtime/scripts.vim 2009-01-31 15:33:15.442805979 -0800 504 504 @@ -234,6 +234,10 @@ 505 505 elseif s:line1 =~ '\<DTD\s\+XHTML\s' … … 515 515 diff -Naur vim72.orig/src/auto/configure vim72/src/auto/configure 516 516 --- vim72.orig/src/auto/configure 2008-07-24 05:40:36.000000000 -0700 517 +++ vim72/src/auto/configure 2009-01- 19 00:09:07.000000000-0800517 +++ vim72/src/auto/configure 2009-01-31 15:34:57.133820925 -0800 518 518 @@ -16819,21 +16819,29 @@ 519 519 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" … … 556 556 diff -Naur vim72.orig/src/buffer.c vim72/src/buffer.c 557 557 --- vim72.orig/src/buffer.c 2008-08-06 04:00:48.000000000 -0700 558 +++ vim72/src/buffer.c 2009-01- 19 00:10:45.000000000-0800558 +++ vim72/src/buffer.c 2009-01-31 15:36:29.100163152 -0800 559 559 @@ -437,10 +437,6 @@ 560 560 return; … … 674 674 diff -Naur vim72.orig/src/configure.in vim72/src/configure.in 675 675 --- vim72.orig/src/configure.in 2008-07-24 05:40:26.000000000 -0700 676 +++ vim72/src/configure.in 2009-01- 19 00:09:07.000000000-0800676 +++ vim72/src/configure.in 2009-01-31 15:34:57.133820925 -0800 677 677 @@ -3152,18 +3152,25 @@ 678 678 dnl But only when making dependencies, cproto and lint don't take "-isystem". … … 709 709 diff -Naur vim72.orig/src/diff.c vim72/src/diff.c 710 710 --- vim72.orig/src/diff.c 2008-03-05 03:16:56.000000000 -0800 711 +++ vim72/src/diff.c 2009-01-19 00:09:50.000000000 -0800 711 +++ vim72/src/diff.c 2009-01-31 15:36:47.273414164 -0800 712 @@ -8,7 +8,7 @@ 713 */ 714 715 /* 716 - * diff.c: code for diff'ing two or three buffers. 717 + * diff.c: code for diff'ing two, three or four buffers. 718 */ 719 720 #include "vim.h" 712 721 @@ -73,6 +73,8 @@ 713 722 { … … 727 736 } 728 737 } 738 @@ -113,7 +116,7 @@ 739 * Add a buffer to make diffs for. 740 * Call this when a new buffer is being edited in the current window where 741 * 'diff' is set. 742 - * Marks the current buffer as being part of the diff and requireing updating. 743 + * Marks the current buffer as being part of the diff and requiring updating. 744 * This must be done before any autocmd, because a command may use info 745 * about the screen contents. 746 */ 729 747 @@ -131,6 +134,7 @@ 730 748 { … … 784 802 diff_a_works = MAYBE; 785 803 #if defined(MSWIN) || defined(MSDOS) 804 @@ -914,7 +929,7 @@ 805 goto theend; 806 807 #ifdef UNIX 808 - /* Temporaraly chdir to /tmp, to avoid patching files in the current 809 + /* Temporarily chdir to /tmp, to avoid patching files in the current 810 * directory when the patch file contains more than one patch. When we 811 * have our own temp dir use that instead, it will be cleaned up when we 812 * exit (any .rej files created). Don't change directory if we can't 786 813 @@ -925,10 +940,10 @@ 787 814 { … … 797 824 } 798 825 #endif 826 @@ -2114,6 +2129,8 @@ 827 EMSG2(_("E102: Can't find buffer \"%s\""), eap->arg); 828 return; 829 } 830 + if (buf == curbuf) 831 + return; /* nothing to do */ 832 idx_other = diff_buf_idx(buf); 833 if (idx_other == DB_COUNT) 834 { 799 835 diff -Naur vim72.orig/src/edit.c vim72/src/edit.c 800 836 --- vim72.orig/src/edit.c 2008-08-06 05:51:17.000000000 -0700 801 +++ vim72/src/edit.c 2009-01- 19 00:10:48.000000000-0800837 +++ vim72/src/edit.c 2009-01-31 15:36:31.884353681 -0800 802 838 @@ -147,6 +147,7 @@ 803 839 static int ins_compl_bs __ARGS((void)); … … 1011 1047 diff -Naur vim72.orig/src/eval.c vim72/src/eval.c 1012 1048 --- vim72.orig/src/eval.c 2008-08-07 12:37:22.000000000 -0700 1013 +++ vim72/src/eval.c 2009-01- 19 00:10:21.000000000-08001049 +++ vim72/src/eval.c 2009-01-31 15:37:02.506466546 -0800 1014 1050 @@ -32,6 +32,9 @@ 1015 1051 … … 1254 1290 {"has_key", 2, 2, f_has_key}, 1255 1291 {"haslocaldir", 0, 0, f_haslocaldir}, 1256 @@ -9518,7 +9580,7 @@ 1292 @@ -7856,9 +7918,9 @@ 1293 else if (!aborting()) 1294 { 1295 if (argcount == MAX_FUNC_ARGS) 1296 - emsg_funcname("E740: Too many arguments for function %s", name); 1297 + emsg_funcname(N_("E740: Too many arguments for function %s"), name); 1298 else 1299 - emsg_funcname("E116: Invalid arguments for function %s", name); 1300 + emsg_funcname(N_("E116: Invalid arguments for function %s"), name); 1301 } 1302 1303 while (--argcount >= 0) 1304 @@ -8091,6 +8153,7 @@ 1305 1306 /* 1307 * Give an error message with a function name. Handle <SNR> things. 1308 + * "ermsg" is to be passed without translation, use N_() instead of _(). 1309 */ 1310 static void 1311 emsg_funcname(ermsg, name) 1312 @@ -9518,7 +9581,7 @@ 1257 1313 else 1258 1314 { … … 1263 1319 && get_tv_number_chk(&argvars[1], &error)) 1264 1320 flags |= WILD_KEEP_ALL; 1265 @@ -10300,7 +1036 2,8 @@1321 @@ -10300,7 +10363,8 @@ 1266 1322 s = get_tv_string(&argvars[0]); 1267 1323 if (s == NULL || *s == NUL || VIM_ISDIGIT(*s)) … … 1273 1329 else 1274 1330 { 1275 @@ -10602,7 +1066 5,7 @@1331 @@ -10602,7 +10666,7 @@ 1276 1332 # ifdef FEAT_WINDOWS 1277 1333 win_T *wp; … … 1282 1338 if (row >= 0 && col >= 0) 1283 1339 { 1284 @@ -10612,9 +1067 5,9 @@1340 @@ -10612,9 +10676,9 @@ 1285 1341 (void)mouse_comp_pos(win, &row, &col, &lnum); 1286 1342 # ifdef FEAT_WINDOWS … … 1294 1350 vimvars[VV_MOUSE_COL].vv_nr = col + 1; 1295 1351 } 1296 @@ -11284,13 +1134 7,25 @@1352 @@ -11284,13 +11348,25 @@ 1297 1353 typval_T *argvars; 1298 1354 typval_T *rettv; … … 1324 1380 1325 1381 /* 1326 @@ -11301,14 +1137 6,22 @@1382 @@ -11301,14 +11377,22 @@ 1327 1383 typval_T *argvars; 1328 1384 typval_T *rettv; … … 1349 1405 1350 1406 /* 1351 @@ -11782,6 +1186 5,10 @@1407 @@ -11782,6 +11866,10 @@ 1352 1408 n = has_patch(atoi((char *)name + 5)); 1353 1409 else if (STRICMP(name, "vim_starting") == 0) … … 1360 1416 else if (STRICMP(name, "balloon_multiline") == 0) 1361 1417 n = multiline_balloon_available(); 1362 @@ -15838,10 +1592 5,9 @@1418 @@ -15838,10 +15926,9 @@ 1363 1419 if (res == FAIL) 1364 1420 res = ITEM_COMPARE_FAIL; … … 1372 1428 return res; 1373 1429 } 1374 @@ -16590,8 +1667 6,11 @@1430 @@ -16590,8 +16677,11 @@ 1375 1431 p = highlight_has_attr(id, HL_INVERSE, modec); 1376 1432 break; … … 1386 1442 1387 1443 case 'u': 1388 @@ -16658,7 +1674 7,7 @@1444 @@ -16658,7 +16748,7 @@ 1389 1445 col = get_tv_number(&argvars[1]) - 1; /* -1 on type error */ 1390 1446 … … 1395 1451 { 1396 1452 (void)syn_get_id(curwin, lnum, (colnr_T)col, FALSE, NULL, TRUE); 1397 @@ -18097,14 +1818 6,28 @@1453 @@ -18097,14 +18187,28 @@ 1398 1454 } 1399 1455 … … 1427 1483 vimvars[VV_COUNT1].vv_nr = count1; 1428 1484 } 1429 @@ -18132,6 +1823 5,20 @@1485 @@ -18132,6 +18236,20 @@ 1430 1486 } 1431 1487 … … 1448 1504 */ 1449 1505 void 1450 @@ -18868,7 +1898 5,7 @@1506 @@ -18868,7 +18986,7 @@ 1451 1507 dictitem_T *dict_var; 1452 1508 { … … 1457 1513 dict_var->di_tv.v_type = VAR_DICT; 1458 1514 dict_var->di_tv.v_lock = VAR_FIXED; 1459 @@ -19205,6 +1932 2,8 @@1515 @@ -19205,6 +19323,8 @@ 1460 1516 * Copy the values from typval_T "from" to typval_T "to". 1461 1517 * When needed allocates string or increases reference count. … … 1466 1522 static void 1467 1523 copy_tv(from, to) 1468 @@ -20590,6 +20709,9 @@ 1524 @@ -19748,7 +19868,7 @@ 1525 } 1526 } 1527 else 1528 - emsg_funcname("E123: Undefined function: %s", name); 1529 + emsg_funcname(N_("E123: Undefined function: %s"), name); 1530 } 1531 goto ret_free; 1532 } 1533 @@ -19792,7 +19912,7 @@ 1534 : eval_isnamec(arg[j]))) 1535 ++j; 1536 if (arg[j] != NUL) 1537 - emsg_funcname(_(e_invarg2), arg); 1538 + emsg_funcname(e_invarg2, arg); 1539 } 1540 } 1541 1542 @@ -20064,7 +20184,7 @@ 1543 v = find_var(name, &ht); 1544 if (v != NULL && v->di_tv.v_type == VAR_FUNC) 1545 { 1546 - emsg_funcname("E707: Function name conflicts with variable: %s", 1547 + emsg_funcname(N_("E707: Function name conflicts with variable: %s"), 1548 name); 1549 goto erret; 1550 } 1551 @@ -20079,7 +20199,7 @@ 1552 } 1553 if (fp->uf_calls > 0) 1554 { 1555 - emsg_funcname("E127: Cannot redefine function %s: It is in use", 1556 + emsg_funcname(N_("E127: Cannot redefine function %s: It is in use"), 1557 name); 1558 goto erret; 1559 } 1560 @@ -20590,6 +20710,9 @@ 1469 1561 int st_len = 0; 1470 1562 … … 1476 1568 1477 1569 for (hi = func_hashtab.ht_array; todo > 0; ++hi) 1478 @@ -20638,6 +2076 0,8 @@1570 @@ -20638,6 +20761,8 @@ 1479 1571 prof_self_cmp); 1480 1572 prof_sort_list(fd, sorttab, st_len, "SELF", TRUE); … … 1485 1577 1486 1578 static void 1487 @@ -21012,7 +2113 6,7 @@1579 @@ -21012,7 +21137,7 @@ 1488 1580 char_u *save_sourcing_name; 1489 1581 linenr_T save_sourcing_lnum; … … 1494 1586 static int depth = 0; 1495 1587 dictitem_T *v; 1496 @@ -21038,36 +2116 2,37 @@1588 @@ -21038,36 +21163,37 @@ 1497 1589 1498 1590 line_breakcheck(); /* check for CTRL-C hit */ … … 1545 1637 v->di_tv.v_lock = 0; 1546 1638 v->di_tv.vval.v_dict = selfdict; 1547 @@ -21079,28 +2120 4,31 @@1639 @@ -21079,28 +21205,31 @@ 1548 1640 * Set a:0 to "argcount". 1549 1641 * Set a:000 to a list with room for the "..." arguments. … … 1588 1680 for (i = 0; i < argcount; ++i) 1589 1681 { 1590 @@ -21116,7 +2124 4,7 @@1682 @@ -21116,7 +21245,7 @@ 1591 1683 } 1592 1684 if (fixvar_idx < FIXVAR_CNT && STRLEN(name) <= VAR_SHORT_LEN) … … 1597 1689 } 1598 1690 else 1599 @@ -21128,7 +2125 6,7 @@1691 @@ -21128,7 +21257,7 @@ 1600 1692 v->di_flags = DI_FLAGS_RO; 1601 1693 } … … 1606 1698 /* Note: the values are copied directly to avoid alloc/free. 1607 1699 * "argvars" must have VAR_FIXED for v_lock. */ 1608 @@ -21137,9 +2126 5,9 @@1700 @@ -21137,9 +21266,9 @@ 1609 1701 1610 1702 if (ai >= 0 && ai < MAX_FUNC_ARGS) … … 1619 1711 } 1620 1712 1621 @@ -21204,7 +2133 2,7 @@1713 @@ -21204,7 +21333,7 @@ 1622 1714 if (!fp->uf_profiling && has_profiling(FALSE, fp->uf_name, NULL)) 1623 1715 func_do_profile(fp); … … 1628 1720 ++fp->uf_tm_count; 1629 1721 profile_start(&call_start); 1630 @@ -21220,7 +2134 8,7 @@1722 @@ -21220,7 +21349,7 @@ 1631 1723 did_emsg = FALSE; 1632 1724 … … 1637 1729 1638 1730 --RedrawingDisabled; 1639 @@ -21235,16 +2136 3,16 @@1731 @@ -21235,16 +21364,16 @@ 1640 1732 1641 1733 #ifdef FEAT_PROFILE … … 1658 1750 } 1659 1751 #endif 1660 @@ -21257,9 +2138 5,9 @@1752 @@ -21257,9 +21386,9 @@ 1661 1753 1662 1754 if (aborting()) … … 1670 1762 { 1671 1763 char_u buf[MSG_BUF_LEN]; 1672 @@ -21270,7 +2139 8,7 @@1764 @@ -21270,7 +21399,7 @@ 1673 1765 /* The value may be very long. Skip the middle part, so that we 1674 1766 * have some idea how it starts and ends. smsg() would always … … 1679 1771 { 1680 1772 trunc_string(s, buf, MSG_BUF_CLEN); 1681 @@ -21306,14 +2143 4,84 @@1773 @@ -21306,14 +21435,84 @@ 1682 1774 } 1683 1775 … … 1732 1824 +/* 1733 1825 + * Return TRUE if items in "fc" do not have "copyID". That means they are not 1734 + * referenced from anyw yere.1826 + * referenced from anywhere. 1735 1827 + */ 1736 1828 + static int … … 1770 1862 1771 1863 /* 1772 @@ -21886,6 +2208 4,62 @@1864 @@ -21886,6 +22085,62 @@ 1773 1865 } 1774 1866 } … … 1833 1925 1834 1926 1927 diff -Naur vim72.orig/src/ex_cmds2.c vim72/src/ex_cmds2.c 1928 --- vim72.orig/src/ex_cmds2.c 2008-07-13 09:18:22.000000000 -0700 1929 +++ vim72/src/ex_cmds2.c 2009-01-31 15:33:32.776003353 -0800 1930 @@ -3145,8 +3145,8 @@ 1931 verbose_leave(); 1932 } 1933 #ifdef STARTUPTIME 1934 - vim_snprintf(IObuff, IOSIZE, "sourcing %s", fname); 1935 - time_msg(IObuff, &tv_start); 1936 + vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname); 1937 + time_msg((char *)IObuff, &tv_start); 1938 time_pop(&tv_rel); 1939 #endif 1940 1835 1941 diff -Naur vim72.orig/src/ex_cmds.c vim72/src/ex_cmds.c 1836 1942 --- vim72.orig/src/ex_cmds.c 2008-08-04 12:15:00.000000000 -0700 1837 +++ vim72/src/ex_cmds.c 2009-01- 19 00:10:54.000000000-08001943 +++ vim72/src/ex_cmds.c 2009-01-31 15:36:36.964705127 -0800 1838 1944 @@ -24,7 +24,7 @@ 1839 1945 static void do_filter __ARGS((linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, int do_in, int do_out)); … … 1992 2098 diff -Naur vim72.orig/src/ex_cmds.h vim72/src/ex_cmds.h 1993 2099 --- vim72.orig/src/ex_cmds.h 2008-06-21 11:47:57.000000000 -0700 1994 +++ vim72/src/ex_cmds.h 2009-01- 19 00:08:31.000000000 -08002100 +++ vim72/src/ex_cmds.h 2009-01-31 15:34:23.095473390 -0800 1995 2101 @@ -278,7 +278,7 @@ 1996 2102 EX(CMD_crewind, "crewind", ex_cc, … … 2038 2144 TRLBAR|EXTRA|CMDWIN|SBOXOK), 2039 2145 EX(CMD_setfiletype, "setfiletype", ex_setfiletype, 2040 diff -Naur vim72.orig/src/ex_cmds2.c vim72/src/ex_cmds2.c2041 --- vim72.orig/src/ex_cmds2.c 2008-07-13 09:18:22.000000000 -07002042 +++ vim72/src/ex_cmds2.c 2009-01-19 00:07:35.000000000 -08002043 @@ -3145,8 +3145,8 @@2044 verbose_leave();2045 }2046 #ifdef STARTUPTIME2047 - vim_snprintf(IObuff, IOSIZE, "sourcing %s", fname);2048 - time_msg(IObuff, &tv_start);2049 + vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);2050 + time_msg((char *)IObuff, &tv_start);2051 time_pop(&tv_rel);2052 #endif2053 2054 2146 diff -Naur vim72.orig/src/ex_docmd.c vim72/src/ex_docmd.c 2055 2147 --- vim72.orig/src/ex_docmd.c 2008-07-26 04:51:05.000000000 -0700 2056 +++ vim72/src/ex_docmd.c 2009-01- 19 00:10:13.000000000-08002148 +++ vim72/src/ex_docmd.c 2009-01-31 15:36:57.446117894 -0800 2057 2149 @@ -364,6 +364,7 @@ 2058 2150 # define ex_function ex_ni … … 2088 2180 #endif 2089 2181 case CMD_set: 2090 @@ -8749,8 +8752,8 @@ 2182 @@ -5479,6 +5482,9 @@ 2183 return OK; 2184 } 2185 2186 +/* 2187 + * ":command ..." 2188 + */ 2189 static void 2190 ex_command(eap) 2191 exarg_T *eap; 2192 @@ -5911,6 +5917,7 @@ 2193 2194 char_u *start; 2195 char_u *end; 2196 + char_u *ksp; 2197 size_t len, totlen; 2198 2199 size_t split_len = 0; 2200 @@ -5927,16 +5934,51 @@ 2201 2202 /* 2203 * Replace <> in the command by the arguments. 2204 + * First round: "buf" is NULL, compute length, allocate "buf". 2205 + * Second round: copy result into "buf". 2206 */ 2207 buf = NULL; 2208 for (;;) 2209 { 2210 - p = cmd->uc_rep; 2211 - q = buf; 2212 + p = cmd->uc_rep; /* source */ 2213 + q = buf; /* destinateion */ 2214 totlen = 0; 2215 - while ((start = vim_strchr(p, '<')) != NULL 2216 - && (end = vim_strchr(start + 1, '>')) != NULL) 2217 + 2218 + for (;;) 2219 { 2220 + start = vim_strchr(p, '<'); 2221 + if (start != NULL) 2222 + end = vim_strchr(start + 1, '>'); 2223 + if (buf != NULL) 2224 + { 2225 + ksp = vim_strchr(p, K_SPECIAL); 2226 + if (ksp != NULL && (start == NULL || ksp < start || end == NULL) 2227 + && ((ksp[1] == KS_SPECIAL && ksp[2] == KE_FILLER) 2228 +# ifdef FEAT_GUI 2229 + || (ksp[1] == KS_EXTRA && ksp[2] == (int)KE_CSI) 2230 +# endif 2231 + )) 2232 + { 2233 + /* K_SPECIAL han been put in the buffer as K_SPECIAL 2234 + * KS_SPECIAL KE_FILLER, like for mappings, but 2235 + * do_cmdline() doesn't handle that, so convert it back. 2236 + * Also change K_SPECIAL KS_EXTRA KE_CSI into CSI. */ 2237 + len = ksp - p; 2238 + if (len > 0) 2239 + { 2240 + mch_memmove(q, p, len); 2241 + q += len; 2242 + } 2243 + *q++ = ksp[1] == KS_SPECIAL ? K_SPECIAL : CSI; 2244 + p = ksp + 3; 2245 + continue; 2246 + } 2247 + } 2248 + 2249 + /* break if there no <item> is found */ 2250 + if (start == NULL || end == NULL) 2251 + break; 2252 + 2253 /* Include the '>' */ 2254 ++end; 2255 2256 @@ -8749,8 +8791,8 @@ 2091 2257 else if (*dirnow != NUL 2092 2258 && (ssop_flags & SSOP_CURDIR) && globaldir != NULL) … … 2099 2265 2100 2266 failed |= (makeopens(fd, dirnow) == FAIL); 2101 @@ -9506,24 +95 09,50 @@2267 @@ -9506,24 +9548,50 @@ 2102 2268 break; 2103 2269 } … … 2160 2326 2161 2327 #ifdef FEAT_SEARCHPATH 2162 @@ -9541,6 +9 570,15 @@2328 @@ -9541,6 +9609,15 @@ 2163 2329 #ifdef FEAT_AUTOCMD 2164 2330 case SPEC_AFILE: /* file name for autocommand */ … … 2176 2342 { 2177 2343 *errormsg = (char_u *)_("E495: no autocommand file name to substitute for \"<afile>\""); 2178 @@ -10067,7 +101 05,7 @@2344 @@ -10067,7 +10144,7 @@ 2179 2345 */ 2180 2346 if (put_line(fd, "let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"") == FAIL … … 2185 2351 return FAIL; 2186 2352 2187 @@ -10689,7 +107 27,8 @@2353 @@ -10689,7 +10766,8 @@ 2188 2354 p_viminfo = (char_u *)"'100"; 2189 2355 if (eap->cmdidx == CMD_rviminfo) … … 2197 2363 diff -Naur vim72.orig/src/ex_getln.c vim72/src/ex_getln.c 2198 2364 --- vim72.orig/src/ex_getln.c 2008-08-08 02:31:33.000000000 -0700 2199 +++ vim72/src/ex_getln.c 2009-01- 19 00:09:28.000000000-08002365 +++ vim72/src/ex_getln.c 2009-01-31 15:35:15.935116916 -0800 2200 2366 @@ -31,6 +31,8 @@ 2201 2367 int cmdattr; /* attributes for prompt */ … … 2331 2497 diff -Naur vim72.orig/src/feature.h vim72/src/feature.h 2332 2498 --- vim72.orig/src/feature.h 2008-08-06 04:00:39.000000000 -0700 2333 +++ vim72/src/feature.h 2009-01- 19 00:08:31.000000000 -08002499 +++ vim72/src/feature.h 2009-01-31 15:34:23.099473670 -0800 2334 2500 @@ -767,9 +767,13 @@ 2335 2501 … … 2350 2516 diff -Naur vim72.orig/src/fileio.c vim72/src/fileio.c 2351 2517 --- vim72.orig/src/fileio.c 2008-08-06 04:01:03.000000000 -0700 2352 +++ vim72/src/fileio.c 2009-01- 19 00:10:40.000000000-08002518 +++ vim72/src/fileio.c 2009-01-31 15:36:23.847800531 -0800 2353 2519 @@ -932,7 +932,10 @@ 2354 2520 else … … 2580 2746 diff -Naur vim72.orig/src/fold.c vim72/src/fold.c 2581 2747 --- vim72.orig/src/fold.c 2008-08-06 04:01:12.000000000 -0700 2582 +++ vim72/src/fold.c 2009-01- 19 00:10:42.000000000-08002748 +++ vim72/src/fold.c 2009-01-31 15:36:26.439979606 -0800 2583 2749 @@ -48,7 +48,7 @@ 2584 2750 static int foldFind __ARGS((garray_T *gap, linenr_T lnum, fold_T **fpp)); … … 2669 2835 diff -Naur vim72.orig/src/getchar.c vim72/src/getchar.c 2670 2836 --- vim72.orig/src/getchar.c 2008-07-22 09:57:48.000000000 -0700 2671 +++ vim72/src/getchar.c 2009-01- 19 00:09:36.000000000-08002837 +++ vim72/src/getchar.c 2009-01-31 15:35:23.583644643 -0800 2672 2838 @@ -4702,7 +4702,7 @@ 2673 2839 return FAIL; … … 2690 2856 diff -Naur vim72.orig/src/globals.h vim72/src/globals.h 2691 2857 --- vim72.orig/src/globals.h 2008-07-26 04:53:29.000000000 -0700 2692 +++ vim72/src/globals.h 2009-01- 19 00:10:45.000000000-08002858 +++ vim72/src/globals.h 2009-01-31 15:36:29.100163152 -0800 2693 2859 @@ -1022,6 +1022,7 @@ 2694 2860 #endif … … 2722 2888 */ 2723 2889 #ifdef FEAT_FKMAP 2890 diff -Naur vim72.orig/src/gui_at_sb.c vim72/src/gui_at_sb.c 2891 --- vim72.orig/src/gui_at_sb.c 2004-06-07 07:32:25.000000000 -0700 2892 +++ vim72/src/gui_at_sb.c 2009-01-31 15:35:26.611853332 -0800 2893 @@ -1078,6 +1078,12 @@ 2894 Cardinal *num_params; /* unused */ 2895 { 2896 ScrollbarWidget sbw = (ScrollbarWidget)w; 2897 + /* Use a union to avoid a warning for the weird conversion from float to 2898 + * XtPointer. Comes from Xaw/Scrollbar.c. */ 2899 + union { 2900 + XtPointer xtp; 2901 + float xtf; 2902 + } xtpf; 2903 2904 if (LookAhead(w, event)) 2905 return; 2906 @@ -1085,7 +1091,8 @@ 2907 /* thumbProc is not pretty, but is necessary for backwards 2908 compatibility on those architectures for which it work{s,ed}; 2909 the intent is to pass a (truncated) float by value. */ 2910 - XtCallCallbacks(w, XtNthumbProc, *(XtPointer*)&sbw->scrollbar.top); 2911 + xtpf.xtf = sbw->scrollbar.top; 2912 + XtCallCallbacks(w, XtNthumbProc, xtpf.xtp); 2913 XtCallCallbacks(w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top); 2914 } 2915 2724 2916 diff -Naur vim72.orig/src/gui.c vim72/src/gui.c 2725 2917 --- vim72.orig/src/gui.c 2008-07-27 12:32:14.000000000 -0700 2726 +++ vim72/src/gui.c 2009-01- 19 00:10:07.000000000-08002918 +++ vim72/src/gui.c 2009-01-31 15:35:52.701652745 -0800 2727 2919 @@ -139,7 +139,7 @@ 2728 2920 /* The read returns when the child closes the pipe (or when … … 2815 3007 } 2816 3008 #ifdef FEAT_WINDOWS 2817 diff -Naur vim72.orig/src/gui_at_sb.c vim72/src/gui_at_sb.c2818 --- vim72.orig/src/gui_at_sb.c 2004-06-07 07:32:25.000000000 -07002819 +++ vim72/src/gui_at_sb.c 2009-01-19 00:09:39.000000000 -08002820 @@ -1078,6 +1078,12 @@2821 Cardinal *num_params; /* unused */2822 {2823 ScrollbarWidget sbw = (ScrollbarWidget)w;2824 + /* Use a union to avoid a warning for the weird conversion from float to2825 + * XtPointer. Comes from Xaw/Scrollbar.c. */2826 + union {2827 + XtPointer xtp;2828 + float xtf;2829 + } xtpf;2830 2831 if (LookAhead(w, event))2832 return;2833 @@ -1085,7 +1091,8 @@2834 /* thumbProc is not pretty, but is necessary for backwards2835 compatibility on those architectures for which it work{s,ed};2836 the intent is to pass a (truncated) float by value. */2837 - XtCallCallbacks(w, XtNthumbProc, *(XtPointer*)&sbw->scrollbar.top);2838 + xtpf.xtf = sbw->scrollbar.top;2839 + XtCallCallbacks(w, XtNthumbProc, xtpf.xtp);2840 XtCallCallbacks(w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top);2841 }2842 2843 3009 diff -Naur vim72.orig/src/gui_gtk_x11.c vim72/src/gui_gtk_x11.c 2844 3010 --- vim72.orig/src/gui_gtk_x11.c 2008-07-04 03:46:24.000000000 -0700 2845 +++ vim72/src/gui_gtk_x11.c 2009-01- 19 00:09:39.000000000-08003011 +++ vim72/src/gui_gtk_x11.c 2009-01-31 15:35:26.615854449 -0800 2846 3012 @@ -4070,14 +4070,14 @@ 2847 3013 … … 2867 3033 diff -Naur vim72.orig/src/gui_x11.c vim72/src/gui_x11.c 2868 3034 --- vim72.orig/src/gui_x11.c 2008-06-08 08:13:45.000000000 -0700 2869 +++ vim72/src/gui_x11.c 2009-01- 19 00:08:42.000000000-08003035 +++ vim72/src/gui_x11.c 2009-01-31 15:34:33.676201425 -0800 2870 3036 @@ -2450,7 +2450,7 @@ 2871 3037 *colorPtr = colortable[closest]; … … 2879 3045 diff -Naur vim72.orig/src/gui_xmdlg.c vim72/src/gui_xmdlg.c 2880 3046 --- vim72.orig/src/gui_xmdlg.c 2008-06-21 09:05:32.000000000 -0700 2881 +++ vim72/src/gui_xmdlg.c 2009-01- 19 00:09:39.000000000-08003047 +++ vim72/src/gui_xmdlg.c 2009-01-31 15:35:26.615854449 -0800 2882 3048 @@ -369,10 +369,10 @@ 2883 3049 char buf[TEMP_BUF_SIZE]; … … 3035 3201 diff -Naur vim72.orig/src/gui_xmebw.c vim72/src/gui_xmebw.c 3036 3202 --- vim72.orig/src/gui_xmebw.c 2007-09-06 03:57:51.000000000 -0700 3037 +++ vim72/src/gui_xmebw.c 2009-01- 19 00:09:39.000000000-08003203 +++ vim72/src/gui_xmebw.c 2009-01-31 15:35:26.615854449 -0800 3038 3204 @@ -1256,7 +1256,7 @@ 3039 3205 } … … 3062 3228 diff -Naur vim72.orig/src/if_cscope.c vim72/src/if_cscope.c 3063 3229 --- vim72.orig/src/if_cscope.c 2008-06-24 09:32:34.000000000 -0700 3064 +++ vim72/src/if_cscope.c 2009-01- 19 00:07:11.000000000-08003230 +++ vim72/src/if_cscope.c 2009-01-31 15:36:59.910285794 -0800 3065 3231 @@ -74,7 +74,7 @@ 3066 3232 { "add", cs_add, … … 3072 3238 N_("Show this message"), "help", 0 }, 3073 3239 { "kill", cs_kill, 3074 @@ -1180,7 +1180,16 @@ 3075 (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"), 3076 cmdp->name, _(cmdp->help), cmdp->usage); 3240 @@ -1177,10 +1177,27 @@ 3241 (void)MSG_PUTS(_("cscope commands:\n")); 3242 while (cmdp->name != NULL) 3243 { 3244 - (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"), 3245 - cmdp->name, _(cmdp->help), cmdp->usage); 3246 + char *help = _(cmdp->help); 3247 + int space_cnt = 30 - vim_strsize((char_u *)help); 3248 + 3249 + /* Use %*s rather than %30s to ensure proper alignment in utf-8 */ 3250 + if (space_cnt < 0) 3251 + space_cnt = 0; 3252 + (void)smsg((char_u *)_("%-5s: %s%*s (Usage: %s)"), 3253 + cmdp->name, 3254 + help, space_cnt, " ", 3255 + cmdp->usage); 3077 3256 if (strcmp(cmdp->name, "find") == 0) 3078 3257 - MSG_PUTS(FIND_HELP); … … 3092 3271 diff -Naur vim72.orig/src/if_cscope.h vim72/src/if_cscope.h 3093 3272 --- vim72.orig/src/if_cscope.h 2007-09-02 07:51:08.000000000 -0700 3094 +++ vim72/src/if_cscope.h 2009-01- 19 00:07:11.000000000-08003273 +++ vim72/src/if_cscope.h 2009-01-31 15:33:09.878422126 -0800 3095 3274 @@ -42,17 +42,6 @@ 3096 3275 * f 7name Find this file … … 3113 3292 diff -Naur vim72.orig/src/if_perl.xs vim72/src/if_perl.xs 3114 3293 --- vim72.orig/src/if_perl.xs 2008-07-17 13:55:09.000000000 -0700 3115 +++ vim72/src/if_perl.xs 2009-01- 19 00:10:02.000000000-08003294 +++ vim72/src/if_perl.xs 2009-01-31 15:35:47.625302138 -0800 3116 3295 @@ -136,6 +136,9 @@ 3117 3296 # define Perl_newXS_flags dll_Perl_newXS_flags … … 3164 3343 diff -Naur vim72.orig/src/if_python.c vim72/src/if_python.c 3165 3344 --- vim72.orig/src/if_python.c 2008-07-17 14:09:32.000000000 -0700 3166 +++ vim72/src/if_python.c 2009-01- 19 00:10:59.000000000-08003345 +++ vim72/src/if_python.c 2009-01-31 15:36:42.045053779 -0800 3167 3346 @@ -531,6 +531,12 @@ 3168 3347 if (PythonMod_Init()) … … 3266 3445 diff -Naur vim72.orig/src/if_xcmdsrv.c vim72/src/if_xcmdsrv.c 3267 3446 --- vim72.orig/src/if_xcmdsrv.c 2008-07-18 06:05:03.000000000 -0700 3268 +++ vim72/src/if_xcmdsrv.c 2009-01- 19 00:08:50.000000000-08003447 +++ vim72/src/if_xcmdsrv.c 2009-01-31 15:34:41.524742283 -0800 3269 3448 @@ -736,7 +736,7 @@ 3270 3449 + serverReply.ga_len; … … 3296 3475 diff -Naur vim72.orig/src/main.c vim72/src/main.c 3297 3476 --- vim72.orig/src/main.c 2008-07-24 01:40:56.000000000 -0700 3298 +++ vim72/src/main.c 2009-01- 19 00:09:39.000000000-08003477 +++ vim72/src/main.c 2009-01-31 15:35:26.615854449 -0800 3299 3478 @@ -645,11 +645,12 @@ 3300 3479 … … 3358 3537 diff -Naur vim72.orig/src/mark.c vim72/src/mark.c 3359 3538 --- vim72.orig/src/mark.c 2008-08-08 15:06:49.000000000 -0700 3360 +++ vim72/src/mark.c 2009-01- 19 00:08:31.000000000-08003539 +++ vim72/src/mark.c 2009-01-31 15:34:23.103474228 -0800 3361 3540 @@ -1627,15 +1627,17 @@ 3362 3541 … … 3427 3606 diff -Naur vim72.orig/src/mbyte.c vim72/src/mbyte.c 3428 3607 --- vim72.orig/src/mbyte.c 2008-07-14 05:38:05.000000000 -0700 3429 +++ vim72/src/mbyte.c 2009-01- 19 00:09:39.000000000 -08003608 +++ vim72/src/mbyte.c 2009-01-31 15:35:26.619854170 -0800 3430 3609 @@ -717,7 +717,7 @@ 3431 3610 * where mblen() returns 0 for invalid character. … … 3509 3688 diff -Naur vim72.orig/src/menu.c vim72/src/menu.c 3510 3689 --- vim72.orig/src/menu.c 2008-06-21 12:53:43.000000000 -0700 3511 +++ vim72/src/menu.c 2009-01- 19 00:07:05.000000000-08003690 +++ vim72/src/menu.c 2009-01-31 15:33:04.726068725 -0800 3512 3691 @@ -1120,6 +1120,7 @@ 3513 3692 parent = menu; … … 3520 3699 diff -Naur vim72.orig/src/message.c vim72/src/message.c 3521 3700 --- vim72.orig/src/message.c 2008-07-09 11:24:55.000000000 -0700 3522 +++ vim72/src/message.c 2009-01- 19 00:10:51.000000000-08003701 +++ vim72/src/message.c 2009-01-31 15:36:34.352524934 -0800 3523 3702 @@ -4556,7 +4556,13 @@ 3524 3703 remove_trailing_zeroes = TRUE; … … 3622 3801 diff -Naur vim72.orig/src/misc1.c vim72/src/misc1.c 3623 3802 --- vim72.orig/src/misc1.c 2008-07-12 12:20:53.000000000 -0700 3624 +++ vim72/src/misc1.c 2009-01- 19 00:08:31.000000000-08003803 +++ vim72/src/misc1.c 2009-01-31 15:34:23.107474508 -0800 3625 3804 @@ -3245,9 +3245,9 @@ 3626 3805 … … 3637 3816 diff -Naur vim72.orig/src/misc2.c vim72/src/misc2.c 3638 3817 --- vim72.orig/src/misc2.c 2008-07-23 12:12:56.000000000 -0700 3639 +++ vim72/src/misc2.c 2009-01- 19 00:10:29.000000000-08003818 +++ vim72/src/misc2.c 2009-01-31 15:36:49.785587652 -0800 3640 3819 @@ -873,7 +873,7 @@ 3641 3820 /* 3. check for available memory: call mch_avail_mem() */ … … 3706 3885 3707 3886 /* 3887 @@ -4698,7 +4696,8 @@ 3888 stackp->ffs_filearray_cur = i + 1; 3889 ff_push(search_ctx, stackp); 3890 3891 - simplify_filename(file_path); 3892 + if (!path_with_url(file_path)) 3893 + simplify_filename(file_path); 3894 if (mch_dirname(ff_expand_buffer, MAXPATHL) 3895 == OK) 3896 { 3708 3897 diff -Naur vim72.orig/src/move.c vim72/src/move.c 3709 3898 --- vim72.orig/src/move.c 2008-07-12 09:26:47.000000000 -0700 3710 +++ vim72/src/move.c 2009-01- 19 00:09:02.000000000-08003899 +++ vim72/src/move.c 2009-01-31 15:34:52.053468641 -0800 3711 3900 @@ -280,18 +280,20 @@ 3712 3901 … … 3758 3947 diff -Naur vim72.orig/src/netbeans.c vim72/src/netbeans.c 3759 3948 --- vim72.orig/src/netbeans.c 2008-07-13 09:19:54.000000000 -0700 3760 +++ vim72/src/netbeans.c 2009-01- 19 00:10:45.000000000-08003949 +++ vim72/src/netbeans.c 2009-01-31 15:36:29.100163152 -0800 3761 3950 @@ -1043,7 +1043,7 @@ 3762 3951 nbdebug(("EVT: %s", buf)); … … 3847 4036 diff -Naur vim72.orig/src/normal.c vim72/src/normal.c 3848 4037 --- vim72.orig/src/normal.c 2008-07-31 13:03:08.000000000 -0700 3849 +++ vim72/src/normal.c 2009-01- 19 00:09:18.000000000-08004038 +++ vim72/src/normal.c 2009-01-31 15:35:07.274520185 -0800 3850 4039 @@ -183,6 +183,8 @@ 3851 4040 static void nv_cursorhold __ARGS((cmdarg_T *cap)); … … 4035 4224 diff -Naur vim72.orig/src/ops.c vim72/src/ops.c 4036 4225 --- vim72.orig/src/ops.c 2008-06-21 13:08:59.000000000 -0700 4037 +++ vim72/src/ops.c 2009-01- 19 00:10:04.000000000-08004226 +++ vim72/src/ops.c 2009-01-31 15:35:50.225482051 -0800 4038 4227 @@ -2209,12 +2209,15 @@ 4039 4228 { … … 4056 4245 diff -Naur vim72.orig/src/option.c vim72/src/option.c 4057 4246 --- vim72.orig/src/option.c 2008-07-18 06:05:33.000000000 -0700 4058 +++ vim72/src/option.c 2009-01- 19 00:10:29.000000000-08004247 +++ vim72/src/option.c 2009-01-31 15:36:13.627096243 -0800 4059 4248 @@ -2593,13 +2593,13 @@ 4060 4249 #ifdef FEAT_VIMINFO … … 4114 4303 diff -Naur vim72.orig/src/os_unix.c vim72/src/os_unix.c 4115 4304 --- vim72.orig/src/os_unix.c 2008-08-06 04:01:40.000000000 -0700 4116 +++ vim72/src/os_unix.c 2009-01- 19 00:09:40.000000000-08004305 +++ vim72/src/os_unix.c 2009-01-31 15:35:26.627854728 -0800 4117 4306 @@ -315,12 +315,15 @@ 4118 4307 {-1, "Unknown!", FALSE} … … 4228 4417 diff -Naur vim72.orig/src/proto/eval.pro vim72/src/proto/eval.pro 4229 4418 --- vim72.orig/src/proto/eval.pro 2008-08-09 07:31:25.000000000 -0700 4230 +++ vim72/src/proto/eval.pro 2009-01- 19 00:09:18.000000000-08004419 +++ vim72/src/proto/eval.pro 2009-01-31 15:35:07.274520185 -0800 4231 4420 @@ -17,7 +17,7 @@ 4232 4421 int eval_to_bool __ARGS((char_u *arg, int *error, char_u **nextcmd, int skip)); … … 4270 4459 diff -Naur vim72.orig/src/proto/ex_cmds.pro vim72/src/proto/ex_cmds.pro 4271 4460 --- vim72.orig/src/proto/ex_cmds.pro 2008-08-09 07:31:25.000000000 -0700 4272 +++ vim72/src/proto/ex_cmds.pro 2009-01- 19 00:08:31.000000000-08004461 +++ vim72/src/proto/ex_cmds.pro 2009-01-31 15:34:23.107474508 -0800 4273 4462 @@ -11,7 +11,7 @@ 4274 4463 char_u *make_filter_cmd __ARGS((char_u *cmd, char_u *itmp, char_u *otmp)); … … 4282 4471 diff -Naur vim72.orig/src/proto/ex_getln.pro vim72/src/proto/ex_getln.pro 4283 4472 --- vim72.orig/src/proto/ex_getln.pro 2008-08-09 07:31:28.000000000 -0700 4284 +++ vim72/src/proto/ex_getln.pro 2009-01- 19 00:09:28.000000000-08004473 +++ vim72/src/proto/ex_getln.pro 2009-01-31 15:35:15.935116916 -0800 4285 4474 @@ -31,7 +31,7 @@ 4286 4475 void set_cmd_context __ARGS((expand_T *xp, char_u *str, int len, int col)); … … 4294 4483 diff -Naur vim72.orig/src/proto/mark.pro vim72/src/proto/mark.pro 4295 4484 --- vim72.orig/src/proto/mark.pro 2008-08-09 07:31:36.000000000 -0700 4296 +++ vim72/src/proto/mark.pro 2009-01- 19 00:08:31.000000000-08004485 +++ vim72/src/proto/mark.pro 2009-01-31 15:34:23.107474508 -0800 4297 4486 @@ -26,5 +26,5 @@ 4298 4487 void write_viminfo_filemarks __ARGS((FILE *fp)); … … 4304 4493 diff -Naur vim72.orig/src/proto/misc2.pro vim72/src/proto/misc2.pro 4305 4494 --- vim72.orig/src/proto/misc2.pro 2008-08-09 07:31:40.000000000 -0700 4306 +++ vim72/src/proto/misc2.pro 2009-01- 19 00:10:29.000000000-08004495 +++ vim72/src/proto/misc2.pro 2009-01-31 15:36:13.627096243 -0800 4307 4496 @@ -59,7 +59,7 @@ 4308 4497 int handle_x_keys __ARGS((int key)); … … 4316 4505 diff -Naur vim72.orig/src/proto/netbeans.pro vim72/src/proto/netbeans.pro 4317 4506 --- vim72.orig/src/proto/netbeans.pro 2008-08-09 07:31:56.000000000 -0700 4318 +++ vim72/src/proto/netbeans.pro 2009-01- 19 00:10:45.000000000-08004507 +++ vim72/src/proto/netbeans.pro 2009-01-31 15:36:29.100163152 -0800 4319 4508 @@ -11,7 +11,7 @@ 4320 4509 void netbeans_frame_moved __ARGS((int new_x, int new_y)); … … 4328 4517 diff -Naur vim72.orig/src/pty.c vim72/src/pty.c 4329 4518 --- vim72.orig/src/pty.c 2008-06-21 11:52:58.000000000 -0700 4330 +++ vim72/src/pty.c 2009-01- 19 00:07:02.000000000-08004519 +++ vim72/src/pty.c 2009-01-31 15:33:01.673856405 -0800 4331 4520 @@ -270,9 +270,10 @@ 4332 4521 } … … 4344 4533 diff -Naur vim72.orig/src/screen.c vim72/src/screen.c 4345 4534 --- vim72.orig/src/screen.c 2008-07-24 07:45:07.000000000 -0700 4346 +++ vim72/src/screen.c 2009-01- 19 00:08:07.000000000-08004535 +++ vim72/src/screen.c 2009-01-31 15:34:02.242033525 -0800 4347 4536 @@ -2439,9 +2439,17 @@ 4348 4537 … … 4368 4557 diff -Naur vim72.orig/src/spell.c vim72/src/spell.c 4369 4558 --- vim72.orig/src/spell.c 2008-07-12 12:20:55.000000000 -0700 4370 +++ vim72/src/spell.c 2009-01- 19 00:10:18.000000000-08004559 +++ vim72/src/spell.c 2009-01-31 15:36:03.026364856 -0800 4371 4560 @@ -77,7 +77,7 @@ 4372 4561 … … 5203 5392 diff -Naur vim72.orig/src/structs.h vim72/src/structs.h 5204 5393 --- vim72.orig/src/structs.h 2008-07-30 13:02:50.000000000 -0700 5205 +++ vim72/src/structs.h 2009-01- 19 00:09:02.000000000-08005394 +++ vim72/src/structs.h 2009-01-31 15:34:52.057470876 -0800 5206 5395 @@ -459,7 +459,7 @@ 5207 5396 typedef struct … … 5232 5421 diff -Naur vim72.orig/src/tag.c vim72/src/tag.c 5233 5422 --- vim72.orig/src/tag.c 2008-07-16 14:31:30.000000000 -0700 5234 +++ vim72/src/tag.c 2009-01- 19 00:10:57.000000000-08005423 +++ vim72/src/tag.c 2009-01-31 15:36:39.424873027 -0800 5235 5424 @@ -515,7 +515,7 @@ 5236 5425 * If a count is supplied to the ":tag <name>" command, then … … 5285 5474 while (p >= lbuf && vim_iswordc(*p)) 5286 5475 --p; 5476 diff -Naur vim72.orig/src/term.c vim72/src/term.c 5477 --- vim72.orig/src/term.c 2008-07-27 04:48:06.000000000 -0700 5478 +++ vim72/src/term.c 2009-01-31 15:36:44.645233133 -0800 5479 @@ -4920,7 +4920,15 @@ 5480 key_name[0] = KEY2TERMCAP0(key); 5481 key_name[1] = KEY2TERMCAP1(key); 5482 if (key_name[0] == KS_KEY) 5483 - string[new_slen++] = key_name[1]; /* from ":set <M-b>=xx" */ 5484 + { 5485 + /* from ":set <M-b>=xx" */ 5486 +#ifdef FEAT_MBYTE 5487 + if (has_mbyte) 5488 + new_slen += (*mb_char2bytes)(key_name[1], string + new_slen); 5489 + else 5490 +#endif 5491 + string[new_slen++] = key_name[1]; 5492 + } 5493 else 5494 { 5495 string[new_slen++] = K_SPECIAL; 5496 diff -Naur vim72.orig/src/testdir/Makefile vim72/src/testdir/Makefile 5497 --- vim72.orig/src/testdir/Makefile 2008-06-19 13:29:46.000000000 -0700 5498 +++ vim72/src/testdir/Makefile 2009-01-31 15:33:40.756551753 -0800 5499 @@ -26,15 +26,17 @@ 5500 5501 .SUFFIXES: .in .out 5502 5503 -nongui: nolog $(SCRIPTS) 5504 - @echo 5505 - @cat test.log 5506 - @echo ALL DONE 5507 +nongui: nolog $(SCRIPTS) report 5508 + 5509 +gui: nolog $(SCRIPTS) $(SCRIPTS_GUI) report 5510 5511 -gui: nolog $(SCRIPTS) $(SCRIPTS_GUI) 5512 +report: 5513 @echo 5514 - @cat test.log 5515 - @echo ALL DONE 5516 + @echo 'Test results:' 5517 + @/bin/sh -c "if test -f test.log; \ 5518 + then cat test.log; echo TEST FAILURE; exit 1; \ 5519 + else echo ALL DONE; \ 5520 + fi" 5521 5522 $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG) 5523 5524 @@ -71,4 +73,4 @@ 5525 test60.out: test60.vim 5526 5527 nolog: 5528 - -echo Test results: >test.log 5529 + -rm -f test.log 5287 5530 diff -Naur vim72.orig/src/testdir/Make_ming.mak vim72/src/testdir/Make_ming.mak 5288 5531 --- vim72.orig/src/testdir/Make_ming.mak 1969-12-31 16:00:00.000000000 -0800 5289 +++ vim72/src/testdir/Make_ming.mak 2009-01- 19 00:08:05.000000000-08005532 +++ vim72/src/testdir/Make_ming.mak 2009-01-31 15:33:59.649856405 -0800 5290 5533 @@ -0,0 +1,91 @@ 5291 5534 +# Makefile to run tests for Vim, on Dos-like machines … … 5380 5623 + -$(DEL) test.ok 5381 5624 + -$(DEL) viminfo 5382 diff -Naur vim72.orig/src/testdir/Makefile vim72/src/testdir/Makefile5383 --- vim72.orig/src/testdir/Makefile 2008-06-19 13:29:46.000000000 -07005384 +++ vim72/src/testdir/Makefile 2009-01-19 00:07:44.000000000 -08005385 @@ -26,15 +26,17 @@5386 5387 .SUFFIXES: .in .out5388 5389 -nongui: nolog $(SCRIPTS)5390 - @echo5391 - @cat test.log5392 - @echo ALL DONE5393 +nongui: nolog $(SCRIPTS) report5394 +5395 +gui: nolog $(SCRIPTS) $(SCRIPTS_GUI) report5396 5397 -gui: nolog $(SCRIPTS) $(SCRIPTS_GUI)5398 +report:5399 @echo5400 - @cat test.log5401 - @echo ALL DONE5402 + @echo 'Test results:'5403 + @/bin/sh -c "if test -f test.log; \5404 + then cat test.log; echo TEST FAILURE; exit 1; \5405 + else echo ALL DONE; \5406 + fi"5407 5408 $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)5409 5410 @@ -71,4 +73,4 @@5411 test60.out: test60.vim5412 5413 nolog:5414 - -echo Test results: >test.log5415 + -rm -f test.log5416 5625 diff -Naur vim72.orig/src/testdir/test42.ok vim72/src/testdir/test42.ok 5417 5626 --- vim72.orig/src/testdir/test42.ok 2008-02-20 04:27:37.000000000 -0800 5418 +++ vim72/src/testdir/test42.ok 2009-01- 19 00:08:36.000000000-08005627 +++ vim72/src/testdir/test42.ok 2009-01-31 15:34:28.175823718 -0800 5419 5628 @@ -20,7 +20,7 @@ 5420 5629 ucs-2 … … 5428 5637 diff -Naur vim72.orig/src/ui.c vim72/src/ui.c 5429 5638 --- vim72.orig/src/ui.c 2008-07-14 11:14:56.000000000 -0700 5430 +++ vim72/src/ui.c 2009-01- 19 00:09:40.000000000-08005639 +++ vim72/src/ui.c 2009-01-31 15:35:26.631855287 -0800 5431 5640 @@ -1820,7 +1820,7 @@ 5432 5641 #ifdef HAVE_DUP … … 5536 5745 diff -Naur vim72.orig/src/version.c vim72/src/version.c 5537 5746 --- vim72.orig/src/version.c 2008-08-09 07:24:52.000000000 -0700 5538 +++ vim72/src/version.c 2009-01- 19 00:10:59.000000000-08005539 @@ -677,9 +677,1 76@@5747 +++ vim72/src/version.c 2009-01-31 15:37:02.510466825 -0800 5748 @@ -677,9 +677,188 @@ 5540 5749 static int included_patches[] = 5541 5750 { /* Add new patch number below this line */ 5542 5751 /**/ 5752 + 92, 5753 +/**/ 5754 + 91, 5755 +/**/ 5756 + 90, 5757 +/**/ 5758 + 87, 5759 +/**/ 5760 + 86, 5761 +/**/ 5762 + 85, 5763 +/**/ 5543 5764 + 84, 5544 5765 +/**/ … … 5714 5935 highest_patch() 5715 5936 { 5716 @@ -786,7 +9 53,7 @@5937 @@ -786,7 +965,7 @@ 5717 5938 MSG_PUTS(_("\nRISC OS version")); 5718 5939 #endif … … 5723 5944 if (*compiled_arch != NUL) 5724 5945 { 5725 @@ -825,6 + 992,19 @@5946 @@ -825,6 +1004,19 @@ 5726 5947 } 5727 5948 } … … 5745 5966 diff -Naur vim72.orig/src/vim.h vim72/src/vim.h 5746 5967 --- vim72.orig/src/vim.h 2008-08-09 09:03:38.000000000 -0700 5747 +++ vim72/src/vim.h 2009-01- 19 00:09:15.000000000-08005968 +++ vim72/src/vim.h 2009-01-31 15:35:04.666340271 -0800 5748 5969 @@ -341,8 +341,14 @@ 5749 5970 #ifdef BACKSLASH_IN_FILENAME … … 5805 6026 diff -Naur vim72.orig/src/window.c vim72/src/window.c 5806 6027 --- vim72.orig/src/window.c 2008-08-06 04:00:30.000000000 -0700 5807 +++ vim72/src/window.c 2009-01- 19 00:09:40.000000000-08006028 +++ vim72/src/window.c 2009-01-31 15:35:26.631855287 -0800 5808 6029 @@ -4028,14 +4028,14 @@ 5809 6030 if (mch_dirname(cwd, MAXPATHL) == OK) … … 5826 6047 diff -Naur vim72.orig/src/workshop.c vim72/src/workshop.c 5827 6048 --- vim72.orig/src/workshop.c 2008-06-21 11:53:26.000000000 -0700 5828 +++ vim72/src/workshop.c 2009-01- 19 00:09:33.000000000-08006049 +++ vim72/src/workshop.c 2009-01-31 15:35:20.991464171 -0800 5829 6050 @@ -1121,8 +1121,12 @@ 5830 6051 ? (char *)curbuf->b_sfname : "<None>");
Note:
See TracChangeset
for help on using the changeset viewer.