summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0711
blob: 8415f6ad85115e48decb64cd57edb72ba3b9cf9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0711
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0711
Problem:    Test files still use function!.
Solution:   Remove the exclamation mark.  Fix overwriting a function.
Files:	    src/testdir/test49.vim, src/testdir/test_autocmd.vim,
            src/testdir/test_charsearch.vim,
            src/testdir/test_charsearch_utf8.vim,
            src/testdir/test_display.vim, src/testdir/test_edit.vim,
            src/testdir/test_eval_func.vim, src/testdir/test_fnameescape.vim,
            src/testdir/test_getcwd.vim, src/testdir/test_highlight.vim,
            src/testdir/test_hlsearch.vim, src/testdir/test_ins_complete.vim,
            src/testdir/test_lambda.vim, src/testdir/test_listdict.vim,
            src/testdir/test_listlbr.vim, src/testdir/test_listlbr_utf8.vim,
            src/testdir/test_marks.vim, src/testdir/test_matchadd_conceal.vim,
            src/testdir/test_matchadd_conceal_utf8.vim,
            src/testdir/test_messages.vim, src/testdir/test_number.vim,
            src/testdir/test_options.vim, src/testdir/test_partial.vim,
            src/testdir/test_smartindent.vim, src/testdir/test_substitute.vim,
            src/testdir/test_system.vim, src/testdir/test_terminal.vim,
            src/testdir/test_textobjects.vim, src/testdir/test_utf8.vim,
            src/testdir/test_utf8_comparisons.vim,
            src/testdir/test_vartabs.vim, src/testdir/test_vimscript.vim,
            src/testdir/test_window_cmd.vim, src/testdir/test_xxd.vim


*** ../vim-8.1.0710/src/testdir/test49.vim	2017-02-23 18:49:31.000000000 +0100
--- src/testdir/test49.vim	2019-01-09 22:29:59.429878275 +0100
***************
*** 1,6 ****
  " Vim script language tests
  " Author:	Servatius Brandt <Servatius.Brandt@fujitsu-siemens.com>
! " Last Change:	2016 Feb 07
  
  "-------------------------------------------------------------------------------
  " Test environment							    {{{1
--- 1,6 ----
  " Vim script language tests
  " Author:	Servatius Brandt <Servatius.Brandt@fujitsu-siemens.com>
! " Last Change:	2019 Jan 09
  
  "-------------------------------------------------------------------------------
  " Test environment							    {{{1
***************
*** 318,324 ****
  let ExtraVimBase = expand("<sfile>")
  let ExtraVimTestEnv = ""
  "
! function! ExtraVim(...)
      " Count how often this function is called.
      let g:ExtraVimCount = g:ExtraVimCount + 1
  
--- 318,324 ----
  let ExtraVimBase = expand("<sfile>")
  let ExtraVimTestEnv = ""
  "
! function ExtraVim(...)
      " Count how often this function is called.
      let g:ExtraVimCount = g:ExtraVimCount + 1
  
***************
*** 500,506 ****
  " an ExtraVim script as passed by ExtraVim() in ExtraVimBegin.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function! ExtraVimThrowpoint()
      if !exists("g:ExtraVimBegin")
  	Xout "ExtraVimThrowpoint() used outside ExtraVim() script."
  	return v:throwpoint
--- 500,506 ----
  " an ExtraVim script as passed by ExtraVim() in ExtraVimBegin.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function ExtraVimThrowpoint()
      if !exists("g:ExtraVimBegin")
  	Xout "ExtraVimThrowpoint() used outside ExtraVim() script."
  	return v:throwpoint
***************
*** 530,536 ****
  " as a script file, use ExecAsScript below.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function! MakeScript(funcname, ...)
      let script = tempname()
      execute "redir! >" . script
      execute "function" a:funcname
--- 530,536 ----
  " as a script file, use ExecAsScript below.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function MakeScript(funcname, ...)
      let script = tempname()
      execute "redir! >" . script
      execute "function" a:funcname
***************
*** 568,574 ****
  " location specified in the function.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function! ExecAsScript(funcname)
      " Make a script from the function passed as argument.
      let script = MakeScript(a:funcname)
  
--- 568,574 ----
  " location specified in the function.
  "
  " EXTRA_VIM_START - do not change or remove this line.
! function ExecAsScript(funcname)
      " Make a script from the function passed as argument.
      let script = MakeScript(a:funcname)
  
***************
*** 8548,8554 ****
  
  " Remove the autocommands for the events specified as arguments in all used
  " autogroups.
! function! Delete_autocommands(...)
      let augfile = tempname()
      while 1
  	try
--- 8548,8554 ----
  
  " Remove the autocommands for the events specified as arguments in all used
  " autogroups.
! function Delete_autocommands(...)
      let augfile = tempname()
      while 1
  	try
*** ../vim-8.1.0710/src/testdir/test_autocmd.vim	2018-12-21 13:03:24.292337854 +0100
--- src/testdir/test_autocmd.vim	2019-01-09 22:30:57.069457594 +0100
***************
*** 2,8 ****
  
  source shared.vim
  
! func! s:cleanup_buffers() abort
    for bnr in range(1, bufnr('$'))
      if bufloaded(bnr) && bufnr('%') != bnr
        execute 'bd! ' . bnr
--- 2,8 ----
  
  source shared.vim
  
! func s:cleanup_buffers() abort
    for bnr in range(1, bufnr('$'))
      if bufloaded(bnr) && bufnr('%') != bnr
        execute 'bd! ' . bnr
***************
*** 1343,1349 ****
  endfunc
  
  let g:setline_handled = v:false
! func! SetLineOne()
    if !g:setline_handled
      call setline(1, "(x)")
      let g:setline_handled = v:true
--- 1343,1349 ----
  endfunc
  
  let g:setline_handled = v:false
! func SetLineOne()
    if !g:setline_handled
      call setline(1, "(x)")
      let g:setline_handled = v:true
*** ../vim-8.1.0710/src/testdir/test_charsearch.vim	2016-09-07 20:37:01.000000000 +0200
--- src/testdir/test_charsearch.vim	2019-01-09 22:31:27.609160734 +0100
***************
*** 1,5 ****
  
! function! Test_charsearch()
    enew!
    call append(0, ['Xabcdefghijkemnopqretuvwxyz',
  	      \ 'Yabcdefghijkemnopqretuvwxyz',
--- 1,5 ----
  
! func Test_charsearch()
    enew!
    call append(0, ['Xabcdefghijkemnopqretuvwxyz',
  	      \ 'Yabcdefghijkemnopqretuvwxyz',
***************
*** 29,38 ****
    normal! ;;p
    call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3))
    enew!
! endfunction
  
  " Test for t,f,F,T movement commands and 'cpo-;' setting
! function! Test_search_cmds()
    enew!
    call append(0, ["aaa two three four", "    zzz", "yyy   ",
  	      \ "bbb yee yoo four", "ccc two three four",
--- 29,38 ----
    normal! ;;p
    call assert_equal('ZabcdeZfghijkZZemnokqretkZvwxyz', getline(3))
    enew!
! endfunc
  
  " Test for t,f,F,T movement commands and 'cpo-;' setting
! func Test_search_cmds()
    enew!
    call append(0, ["aaa two three four", "    zzz", "yyy   ",
  	      \ "bbb yee yoo four", "ccc two three four",
***************
*** 59,62 ****
    call assert_equal('ccc', getline(5))
    call assert_equal('ddd yee y', getline(6))
    enew!
! endfunction
--- 59,62 ----
    call assert_equal('ccc', getline(5))
    call assert_equal('ddd yee y', getline(6))
    enew!
! endfunc
*** ../vim-8.1.0710/src/testdir/test_charsearch_utf8.vim	2017-03-12 16:16:51.000000000 +0100
--- src/testdir/test_charsearch_utf8.vim	2019-01-09 22:31:48.896914212 +0100
***************
*** 4,10 ****
  endif
  
  " Test for t,f,F,T movement commands
! function! Test_search_cmds()
    new!
    call setline(1, "・最初から最後まで最強のVimは最高")
    1
--- 4,10 ----
  endif
  
  " Test for t,f,F,T movement commands
! func Test_search_cmds()
    new!
    call setline(1, "・最初から最後まで最強のVimは最高")
    1
***************
*** 17,22 ****
    normal! ,
    call assert_equal([0, 1, 28, 0], getpos('.'))
    bw!
! endfunction
  
  " vim: shiftwidth=2 sts=2 expandtab
--- 17,22 ----
    normal! ,
    call assert_equal([0, 1, 28, 0], getpos('.'))
    bw!
! endfunc
  
  " vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.1.0710/src/testdir/test_display.vim	2017-08-13 20:14:30.000000000 +0200
--- src/testdir/test_display.vim	2019-01-09 22:32:22.280533816 +0100
***************
*** 5,11 ****
  
  source view_util.vim
  
! func! Test_display_foldcolumn()
    if !has("folding")
      return
    endif
--- 5,11 ----
  
  source view_util.vim
  
! func Test_display_foldcolumn()
    if !has("folding")
      return
    endif
***************
*** 38,44 ****
    quit!
  endfunc
  
! func! Test_display_foldtext_mbyte()
    if !has("folding") || !has("multi_byte")
      return
    endif
--- 38,44 ----
    quit!
  endfunc
  
! func Test_display_foldtext_mbyte()
    if !has("folding") || !has("multi_byte")
      return
    endif
*** ../vim-8.1.0710/src/testdir/test_edit.vim	2018-11-02 11:59:11.555438565 +0100
--- src/testdir/test_edit.vim	2019-01-09 22:34:16.315285600 +0100
***************
*** 9,15 ****
  
  " Needs to come first until the bug in getchar() is
  " fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ
! func! Test_edit_00b()
    new
    call setline(1, ['abc '])
    inoreabbr <buffer> h here some more
--- 9,15 ----
  
  " Needs to come first until the bug in getchar() is
  " fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ
! func Test_edit_00b()
    new
    call setline(1, ['abc '])
    inoreabbr <buffer> h here some more
***************
*** 21,27 ****
    bw!
  endfunc
  
! func! Test_edit_01()
    " set for Travis CI?
    "  set nocp noesckeys
    new
--- 21,27 ----
    bw!
  endfunc
  
! func Test_edit_01()
    " set for Travis CI?
    "  set nocp noesckeys
    new
***************
*** 61,67 ****
    bw!
  endfunc
  
! func! Test_edit_02()
    " Change cursor position in InsertCharPre command
    new
    call setline(1, 'abc')
--- 61,67 ----
    bw!
  endfunc
  
! func Test_edit_02()
    " Change cursor position in InsertCharPre command
    new
    call setline(1, 'abc')
***************
*** 101,107 ****
    bw!
  endfunc
  
! func! Test_edit_03()
    " Change cursor after <c-o> command to end of line
    new
    call setline(1, 'abc')
--- 101,107 ----
    bw!
  endfunc
  
! func Test_edit_03()
    " Change cursor after <c-o> command to end of line
    new
    call setline(1, 'abc')
***************
*** 120,126 ****
    bw!
  endfunc
  
! func! Test_edit_04()
    " test for :stopinsert
    new
    call setline(1, 'abc')
--- 120,126 ----
    bw!
  endfunc
  
! func Test_edit_04()
    " test for :stopinsert
    new
    call setline(1, 'abc')
***************
*** 132,138 ****
    bw!
  endfunc
  
! func! Test_edit_05()
    " test for folds being opened
    new
    call setline(1, ['abcX', 'abcX', 'zzzZ'])
--- 132,138 ----
    bw!
  endfunc
  
! func Test_edit_05()
    " test for folds being opened
    new
    call setline(1, ['abcX', 'abcX', 'zzzZ'])
***************
*** 154,160 ****
    bw!
  endfunc
  
! func! Test_edit_06()
    " Test in diff mode
    if !has("diff") || !executable("diff")
      return
--- 154,160 ----
    bw!
  endfunc
  
! func Test_edit_06()
    " Test in diff mode
    if !has("diff") || !executable("diff")
      return
***************
*** 176,182 ****
    bw!
  endfunc
  
! func! Test_edit_07()
    " 1) Test with completion <c-l> when popupmenu is visible
    new
    call setline(1, 'J')
--- 176,182 ----
    bw!
  endfunc
  
! func Test_edit_07()
    " 1) Test with completion <c-l> when popupmenu is visible
    new
    call setline(1, 'J')
***************
*** 213,219 ****
    bw!
  endfunc
  
! func! Test_edit_08()
    " reset insertmode from i_ctrl-r_=
    let g:bufnr = bufnr('%')
    new
--- 213,219 ----
    bw!
  endfunc
  
! func Test_edit_08()
    " reset insertmode from i_ctrl-r_=
    let g:bufnr = bufnr('%')
    new
***************
*** 227,233 ****
    unlet g:bufnr
  endfunc
  
! func! Test_edit_09()
    " test i_CTRL-\ combinations
    new
    call setline(1, ['abc', 'def', 'ghi'])
--- 227,233 ----
    unlet g:bufnr
  endfunc
  
! func Test_edit_09()
    " test i_CTRL-\ combinations
    new
    call setline(1, ['abc', 'def', 'ghi'])
***************
*** 257,263 ****
    bw!
  endfunc
  
! func! Test_edit_10()
    " Test for starting selectmode
    new
    set selectmode=key keymodel=startsel
--- 257,263 ----
    bw!
  endfunc
  
! func Test_edit_10()
    " Test for starting selectmode
    new
    set selectmode=key keymodel=startsel
***************
*** 269,275 ****
    bw!
  endfunc
  
! func! Test_edit_11()
    " Test that indenting kicks in
    new
    set cindent
--- 269,275 ----
    bw!
  endfunc
  
! func Test_edit_11()
    " Test that indenting kicks in
    new
    set cindent
***************
*** 313,319 ****
    bw!
  endfunc
  
! func! Test_edit_11_indentexpr()
    " Test that indenting kicks in
    new
    " Use indentexpr instead of cindenting
--- 313,319 ----
    bw!
  endfunc
  
! func Test_edit_11_indentexpr()
    " Test that indenting kicks in
    new
    " Use indentexpr instead of cindenting
***************
*** 340,346 ****
    bw!
  endfunc
  
! func! Test_edit_12()
    " Test changing indent in replace mode
    new
    call setline(1, ["\tabc", "\tdef"])
--- 340,346 ----
    bw!
  endfunc
  
! func Test_edit_12()
    " Test changing indent in replace mode
    new
    call setline(1, ["\tabc", "\tdef"])
***************
*** 392,398 ****
    bw!
  endfunc
  
! func! Test_edit_13()
    " Test smartindenting
    if exists("+smartindent")
      new
--- 392,398 ----
    bw!
  endfunc
  
! func Test_edit_13()
    " Test smartindenting
    if exists("+smartindent")
      new
***************
*** 405,411 ****
    endif
  endfunc
  
! func! Test_edit_CR()
    " Test for <CR> in insert mode
    " basically only in quickfix mode ist tested, the rest
    " has been taken care of by other tests
--- 405,411 ----
    endif
  endfunc
  
! func Test_edit_CR()
    " Test for <CR> in insert mode
    " basically only in quickfix mode ist tested, the rest
    " has been taken care of by other tests
***************
*** 438,444 ****
    call delete('Xqflist.txt')
  endfunc
  
! func! Test_edit_CTRL_()
    " disabled for Windows builds, why?
    if !has("multi_byte") || !has("rightleft") || has("win32")
      return
--- 438,444 ----
    call delete('Xqflist.txt')
  endfunc
  
! func Test_edit_CTRL_()
    " disabled for Windows builds, why?
    if !has("multi_byte") || !has("rightleft") || has("win32")
      return
***************
*** 469,475 ****
  endfunc
  
  " needs to come first, to have the @. register empty
! func! Test_edit_00a_CTRL_A()
    " Test pressing CTRL-A
    new
    call setline(1, repeat([''], 5))
--- 469,475 ----
  endfunc
  
  " needs to come first, to have the @. register empty
! func Test_edit_00a_CTRL_A()
    " Test pressing CTRL-A
    new
    call setline(1, repeat([''], 5))
***************
*** 489,495 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_EY()
    " Ctrl-E/ Ctrl-Y in insert mode completion to scroll
    10new
    call setline(1, range(1, 100))
--- 489,495 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_EY()
    " Ctrl-E/ Ctrl-Y in insert mode completion to scroll
    10new
    call setline(1, range(1, 100))
***************
*** 505,511 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_G()
    new
    call setline(1, ['foobar', 'foobar', 'foobar'])
    call cursor(2, 4)
--- 505,511 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_G()
    new
    call setline(1, ['foobar', 'foobar', 'foobar'])
    call cursor(2, 4)
***************
*** 523,529 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_I()
    " Tab in completion mode
    let path=expand("%:p:h")
    new
--- 523,529 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_I()
    " Tab in completion mode
    let path=expand("%:p:h")
    new
***************
*** 547,553 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_K()
    " Test pressing CTRL-K (basically only dictionary completion and digraphs
    " the rest is already covered
    call writefile(['A', 'AA', 'AAA', 'AAAA'], 'Xdictionary.txt')
--- 547,553 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_K()
    " Test pressing CTRL-K (basically only dictionary completion and digraphs
    " the rest is already covered
    call writefile(['A', 'AA', 'AAA', 'AAAA'], 'Xdictionary.txt')
***************
*** 620,626 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_L()
    " Test Ctrl-X Ctrl-L (line completion)
    new
    set complete=.
--- 620,626 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_L()
    " Test Ctrl-X Ctrl-L (line completion)
    new
    set complete=.
***************
*** 676,682 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_N()
    " Check keyword completion
    new
    set complete=.
--- 676,682 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_N()
    " Check keyword completion
    new
    set complete=.
***************
*** 697,703 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_O()
    " Check for CTRL-O in insert mode
    new
    inoreabbr <buffer> h here some more
--- 697,703 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_O()
    " Check for CTRL-O in insert mode
    new
    inoreabbr <buffer> h here some more
***************
*** 722,728 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_R()
    " Insert Register
    new
    call test_override("ALL", 1)
--- 722,728 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_R()
    " Insert Register
    new
    call test_override("ALL", 1)
***************
*** 737,743 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_S()
    " Test pressing CTRL-S (basically only spellfile completion)
    " the rest is already covered
    new
--- 737,743 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_S()
    " Test pressing CTRL-S (basically only spellfile completion)
    " the rest is already covered
    new
***************
*** 781,787 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_T()
    " Check for CTRL-T and CTRL-X CTRL-T in insert mode
    " 1) increase indent
    new
--- 781,787 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_T()
    " Check for CTRL-T and CTRL-X CTRL-T in insert mode
    " 1) increase indent
    new
***************
*** 858,864 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_U()
    " Test 'completefunc'
    new
    " -1, -2 and -3 are special return values
--- 858,864 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_U()
    " Test 'completefunc'
    new
    " -1, -2 and -3 are special return values
***************
*** 917,923 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_Z()
    " Ctrl-Z when insertmode is not set inserts it literally
    new
    call setline(1, 'abc')
--- 917,923 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_Z()
    " Ctrl-Z when insertmode is not set inserts it literally
    new
    call setline(1, 'abc')
***************
*** 927,933 ****
    " TODO: How to Test Ctrl-Z in insert mode, e.g. suspend?
  endfunc
  
! func! Test_edit_DROP()
    if !has("dnd")
      return
    endif
--- 927,933 ----
    " TODO: How to Test Ctrl-Z in insert mode, e.g. suspend?
  endfunc
  
! func Test_edit_DROP()
    if !has("dnd")
      return
    endif
***************
*** 943,949 ****
    bw!
  endfunc
  
! func! Test_edit_CTRL_V()
    if has("ebcdic")
      return
    endif
--- 943,949 ----
    bw!
  endfunc
  
! func Test_edit_CTRL_V()
    if has("ebcdic")
      return
    endif
***************
*** 971,977 ****
    bw!
  endfunc
  
! func! Test_edit_F1()
    " Pressing <f1>
    new
    call feedkeys(":set im\<cr>\<f1>\<c-l>", 'tnix')
--- 971,977 ----
    bw!
  endfunc
  
! func Test_edit_F1()
    " Pressing <f1>
    new
    call feedkeys(":set im\<cr>\<f1>\<c-l>", 'tnix')
***************
*** 981,987 ****
    bw
  endfunc
  
! func! Test_edit_F21()
    " Pressing <f21>
    " sends a netbeans command
    if has("netbeans_intg")
--- 981,987 ----
    bw
  endfunc
  
! func Test_edit_F21()
    " Pressing <f21>
    " sends a netbeans command
    if has("netbeans_intg")
***************
*** 992,998 ****
    endif
  endfunc
  
! func! Test_edit_HOME_END()
    " Test Home/End Keys
    new
    set foldopen+=hor
--- 992,998 ----
    endif
  endfunc
  
! func Test_edit_HOME_END()
    " Test Home/End Keys
    new
    set foldopen+=hor
***************
*** 1007,1013 ****
    bw!
  endfunc
  
! func! Test_edit_INS()
    " Test for Pressing <Insert>
    new
    call setline(1, ['abc', 'def'])
--- 1007,1013 ----
    bw!
  endfunc
  
! func Test_edit_INS()
    " Test for Pressing <Insert>
    new
    call setline(1, ['abc', 'def'])
***************
*** 1021,1027 ****
    bw!
  endfunc
  
! func! Test_edit_LEFT_RIGHT()
    " Left, Shift-Left, Right, Shift-Right
    new
    call setline(1, ['abc def ghi', 'ABC DEF GHI', 'ZZZ YYY XXX'])
--- 1021,1027 ----
    bw!
  endfunc
  
! func Test_edit_LEFT_RIGHT()
    " Left, Shift-Left, Right, Shift-Right
    new
    call setline(1, ['abc def ghi', 'ABC DEF GHI', 'ZZZ YYY XXX'])
***************
*** 1068,1074 ****
    bw!
  endfunc
  
! func! Test_edit_MOUSE()
    " This is a simple test, since we not really using the mouse here
    if !has("mouse")
      return
--- 1068,1074 ----
    bw!
  endfunc
  
! func Test_edit_MOUSE()
    " This is a simple test, since we not really using the mouse here
    if !has("mouse")
      return
***************
*** 1123,1129 ****
    bw!
  endfunc
  
! func! Test_edit_PAGEUP_PAGEDOWN()
    10new
    call setline(1, repeat(['abc def ghi'], 30))
    call cursor(1, 1)
--- 1123,1129 ----
    bw!
  endfunc
  
! func Test_edit_PAGEUP_PAGEDOWN()
    10new
    call setline(1, repeat(['abc def ghi'], 30))
    call cursor(1, 1)
***************
*** 1222,1228 ****
    bw!
  endfunc
  
! func! Test_edit_forbidden()
    new
    " 1) edit in the sandbox is not allowed
    call setline(1, 'a')
--- 1222,1228 ----
    bw!
  endfunc
  
! func Test_edit_forbidden()
    new
    " 1) edit in the sandbox is not allowed
    call setline(1, 'a')
***************
*** 1282,1288 ****
    bw!
  endfunc
  
! func! Test_edit_rightleft()
    " Cursor in rightleft mode moves differently
    if !exists("+rightleft")
      return
--- 1282,1288 ----
    bw!
  endfunc
  
! func Test_edit_rightleft()
    " Cursor in rightleft mode moves differently
    if !exists("+rightleft")
      return
*** ../vim-8.1.0710/src/testdir/test_eval_func.vim	2014-04-29 13:57:34.000000000 +0200
--- src/testdir/test_eval_func.vim	2019-01-09 22:34:29.947141160 +0100
***************
*** 1,6 ****
  " Vim script used in test_eval.in.  Needed for script-local function.
  
! func! s:Testje()
    return "foo"
  endfunc
  let Bar = function('s:Testje')
--- 1,6 ----
  " Vim script used in test_eval.in.  Needed for script-local function.
  
! func s:Testje()
    return "foo"
  endfunc
  let Bar = function('s:Testje')
*** ../vim-8.1.0710/src/testdir/test_fnameescape.vim	2016-09-07 20:37:01.000000000 +0200
--- src/testdir/test_fnameescape.vim	2019-01-09 22:35:06.338760034 +0100
***************
*** 1,6 ****
  
  " Test if fnameescape is correct for special chars like !
! function! Test_fnameescape()
    let fname = 'Xspa ce'
    let status = v:false
    try
--- 1,6 ----
  
  " Test if fnameescape is correct for special chars like !
! func Test_fnameescape()
    let fname = 'Xspa ce'
    let status = v:false
    try
***************
*** 18,21 ****
    endtry
    call assert_true(status, "ExclamationMark")
    call delete(fname)
! endfunction
--- 18,21 ----
    endtry
    call assert_true(status, "ExclamationMark")
    call delete(fname)
! endfunc
*** ../vim-8.1.0710/src/testdir/test_getcwd.vim	2018-09-23 19:36:10.215763496 +0200
--- src/testdir/test_getcwd.vim	2019-01-09 22:35:35.954454435 +0100
***************
*** 1,112 ****
! function! GetCwdInfo(win, tab)
!  	let tab_changed = 0
!  	let mod = ":t"
!  	if a:tab > 0 && a:tab != tabpagenr()
!    	let tab_changed = 1
!    	exec "tabnext " . a:tab
!  	endif
!  	let bufname = fnamemodify(bufname(winbufnr(a:win)), mod)
!  	if tab_changed
!    	tabprevious
!  	endif
!  	if a:win == 0 && a:tab == 0
!    	let dirname = fnamemodify(getcwd(), mod)
!    	let lflag = haslocaldir()
!  	elseif a:tab == 0
!    	let dirname = fnamemodify(getcwd(a:win), mod)
!    	let lflag = haslocaldir(a:win)
!  	else
!    	let dirname = fnamemodify(getcwd(a:win, a:tab), mod)
!    	let lflag = haslocaldir(a:win, a:tab)
!  	endif
!  	return bufname . ' ' . dirname . ' ' . lflag
! endfunction
  
  " Do all test in a separate window to avoid E211 when we recursively
  " delete the Xtopdir directory during cleanup
  function SetUp()
! 	set visualbell
! 	set nocp viminfo+=nviminfo
  
! 	" On windows a swapfile in Xtopdir prevents it from being cleaned up.
! 	set noswapfile
  
! 	" On windows a stale "Xtopdir" directory may exist, remove it so that
! 	" we start from a clean state.
! 	call delete("Xtopdir", "rf")
! 	new
! 	call mkdir('Xtopdir')
! 	cd Xtopdir
! 	let g:topdir = getcwd()
! 	call mkdir('Xdir1')
! 	call mkdir('Xdir2')
! 	call mkdir('Xdir3')
  endfunction
  
  let g:cwd=getcwd()
  function TearDown()
! 	q
! 	exec "cd " . g:cwd
! 	call delete("Xtopdir", "rf")
  endfunction
  
  function Test_GetCwd()
! 	new a
! 	new b
! 	new c
! 	3wincmd w
! 	lcd Xdir1
! 	call assert_equal("a Xdir1 1", GetCwdInfo(0, 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	wincmd W
! 	call assert_equal("b Xtopdir 0", GetCwdInfo(0, 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	wincmd W
! 	lcd Xdir3
! 	call assert_equal("c Xdir3 1", GetCwdInfo(0, 0))
! 	call assert_equal("a Xdir1 1", GetCwdInfo(bufwinnr("a"), 0))
! 	call assert_equal("b Xtopdir 0", GetCwdInfo(bufwinnr("b"), 0))
! 	call assert_equal("c Xdir3 1", GetCwdInfo(bufwinnr("c"), 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	wincmd W
! 	call assert_equal("a Xdir1 1", GetCwdInfo(bufwinnr("a"), tabpagenr()))
! 	call assert_equal("b Xtopdir 0", GetCwdInfo(bufwinnr("b"), tabpagenr()))
! 	call assert_equal("c Xdir3 1", GetCwdInfo(bufwinnr("c"), tabpagenr()))
! 	call assert_equal(g:topdir, getcwd(-1))
! 
! 	tabnew x
! 	new y
! 	new z
! 	3wincmd w
! 	call assert_equal("x Xtopdir 0", GetCwdInfo(0, 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	wincmd W
! 	lcd Xdir2
! 	call assert_equal("y Xdir2 1", GetCwdInfo(0, 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	wincmd W
! 	lcd Xdir3
! 	call assert_equal("z Xdir3 1", GetCwdInfo(0, 0))
! 	call assert_equal("x Xtopdir 0", GetCwdInfo(bufwinnr("x"), 0))
! 	call assert_equal("y Xdir2 1", GetCwdInfo(bufwinnr("y"), 0))
! 	call assert_equal("z Xdir3 1", GetCwdInfo(bufwinnr("z"), 0))
! 	call assert_equal(g:topdir, getcwd(-1))
! 	let tp_nr = tabpagenr()
! 	tabrewind
! 	call assert_equal("x Xtopdir 0", GetCwdInfo(3, tp_nr))
! 	call assert_equal("y Xdir2 1", GetCwdInfo(2, tp_nr))
! 	call assert_equal("z Xdir3 1", GetCwdInfo(1, tp_nr))
! 	call assert_equal(g:topdir, getcwd(-1))
  endfunc
  
  function Test_GetCwd_lcd_shellslash()
! 	new
! 	let root = fnamemodify('/', ':p')
! 	exe 'lcd '.root
! 	let cwd = getcwd()
! 	if !exists('+shellslash') || &shellslash
! 		call assert_equal(cwd[-1:], '/')
! 	else
! 		call assert_equal(cwd[-1:], '\')
! 	endif
  endfunc
--- 1,112 ----
! func GetCwdInfo(win, tab)
!   let tab_changed = 0
!   let mod = ":t"
!   if a:tab > 0 && a:tab != tabpagenr()
!     let tab_changed = 1
!     exec "tabnext " . a:tab
!   endif
!   let bufname = fnamemodify(bufname(winbufnr(a:win)), mod)
!   if tab_changed
!     tabprevious
!   endif
!   if a:win == 0 && a:tab == 0
!     let dirname = fnamemodify(getcwd(), mod)
!     let lflag = haslocaldir()
!   elseif a:tab == 0
!     let dirname = fnamemodify(getcwd(a:win), mod)
!     let lflag = haslocaldir(a:win)
!   else
!     let dirname = fnamemodify(getcwd(a:win, a:tab), mod)
!     let lflag = haslocaldir(a:win, a:tab)
!   endif
!   return bufname . ' ' . dirname . ' ' . lflag
! endfunc
  
  " Do all test in a separate window to avoid E211 when we recursively
  " delete the Xtopdir directory during cleanup
  function SetUp()
!   set visualbell
!   set nocp viminfo+=nviminfo
  
!   " On windows a swapfile in Xtopdir prevents it from being cleaned up.
!   set noswapfile
  
!   " On windows a stale "Xtopdir" directory may exist, remove it so that
!   " we start from a clean state.
!   call delete("Xtopdir", "rf")
!   new
!   call mkdir('Xtopdir')
!   cd Xtopdir
!   let g:topdir = getcwd()
!   call mkdir('Xdir1')
!   call mkdir('Xdir2')
!   call mkdir('Xdir3')
  endfunction
  
  let g:cwd=getcwd()
  function TearDown()
!   q
!   exec "cd " . g:cwd
!   call delete("Xtopdir", "rf")
  endfunction
  
  function Test_GetCwd()
!   new a
!   new b
!   new c
!   3wincmd w
!   lcd Xdir1
!   call assert_equal("a Xdir1 1", GetCwdInfo(0, 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   wincmd W
!   call assert_equal("b Xtopdir 0", GetCwdInfo(0, 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   wincmd W
!   lcd Xdir3
!   call assert_equal("c Xdir3 1", GetCwdInfo(0, 0))
!   call assert_equal("a Xdir1 1", GetCwdInfo(bufwinnr("a"), 0))
!   call assert_equal("b Xtopdir 0", GetCwdInfo(bufwinnr("b"), 0))
!   call assert_equal("c Xdir3 1", GetCwdInfo(bufwinnr("c"), 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   wincmd W
!   call assert_equal("a Xdir1 1", GetCwdInfo(bufwinnr("a"), tabpagenr()))
!   call assert_equal("b Xtopdir 0", GetCwdInfo(bufwinnr("b"), tabpagenr()))
!   call assert_equal("c Xdir3 1", GetCwdInfo(bufwinnr("c"), tabpagenr()))
!   call assert_equal(g:topdir, getcwd(-1))
! 
!   tabnew x
!   new y
!   new z
!   3wincmd w
!   call assert_equal("x Xtopdir 0", GetCwdInfo(0, 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   wincmd W
!   lcd Xdir2
!   call assert_equal("y Xdir2 1", GetCwdInfo(0, 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   wincmd W
!   lcd Xdir3
!   call assert_equal("z Xdir3 1", GetCwdInfo(0, 0))
!   call assert_equal("x Xtopdir 0", GetCwdInfo(bufwinnr("x"), 0))
!   call assert_equal("y Xdir2 1", GetCwdInfo(bufwinnr("y"), 0))
!   call assert_equal("z Xdir3 1", GetCwdInfo(bufwinnr("z"), 0))
!   call assert_equal(g:topdir, getcwd(-1))
!   let tp_nr = tabpagenr()
!   tabrewind
!   call assert_equal("x Xtopdir 0", GetCwdInfo(3, tp_nr))
!   call assert_equal("y Xdir2 1", GetCwdInfo(2, tp_nr))
!   call assert_equal("z Xdir3 1", GetCwdInfo(1, tp_nr))
!   call assert_equal(g:topdir, getcwd(-1))
  endfunc
  
  function Test_GetCwd_lcd_shellslash()
!   new
!   let root = fnamemodify('/', ':p')
!   exe 'lcd '.root
!   let cwd = getcwd()
!   if !exists('+shellslash') || &shellslash
!     call assert_equal(cwd[-1:], '/')
!   else
!     call assert_equal(cwd[-1:], '\')
!   endif
  endfunc
*** ../vim-8.1.0710/src/testdir/test_highlight.vim	2018-03-12 22:16:02.000000000 +0100
--- src/testdir/test_highlight.vim	2019-01-09 22:36:26.589940740 +0100
***************
*** 38,52 ****
    call assert_fails("hi Crash term='asdf", "E475:")
  endfunc
  
! function! HighlightArgs(name)
    return 'hi ' . substitute(split(execute('hi ' . a:name), '\n')[0], '\<xxx\>', '', '')
! endfunction
  
! function! IsColorable()
    return has('gui_running') || str2nr(&t_Co) >= 8
! endfunction
  
! function! HiCursorLine()
    let hiCursorLine = HighlightArgs('CursorLine')
    if has('gui_running')
      let guibg = matchstr(hiCursorLine, 'guibg=\w\+')
--- 38,52 ----
    call assert_fails("hi Crash term='asdf", "E475:")
  endfunc
  
! func HighlightArgs(name)
    return 'hi ' . substitute(split(execute('hi ' . a:name), '\n')[0], '\<xxx\>', '', '')
! endfunc
  
! func IsColorable()
    return has('gui_running') || str2nr(&t_Co) >= 8
! endfunc
  
! func HiCursorLine()
    let hiCursorLine = HighlightArgs('CursorLine')
    if has('gui_running')
      let guibg = matchstr(hiCursorLine, 'guibg=\w\+')
***************
*** 57,65 ****
      let hi_bg = 'hi CursorLine cterm=NONE ctermbg=Gray'
    endif
    return [hiCursorLine, hi_ul, hi_bg]
! endfunction
  
! function! Check_lcs_eol_attrs(attrs, row, col)
    let save_lcs = &lcs
    set list
  
--- 57,65 ----
      let hi_bg = 'hi CursorLine cterm=NONE ctermbg=Gray'
    endif
    return [hiCursorLine, hi_ul, hi_bg]
! endfunc
  
! func Check_lcs_eol_attrs(attrs, row, col)
    let save_lcs = &lcs
    set list
  
***************
*** 67,73 ****
  
    set nolist
    let &lcs = save_lcs
! endfunction
  
  func Test_highlight_eol_with_cursorline()
    let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
--- 67,73 ----
  
    set nolist
    let &lcs = save_lcs
! endfunc
  
  func Test_highlight_eol_with_cursorline()
    let [hiCursorLine, hi_ul, hi_bg] = HiCursorLine()
*** ../vim-8.1.0710/src/testdir/test_hlsearch.vim	2018-09-02 15:07:21.977655529 +0200
--- src/testdir/test_hlsearch.vim	2019-01-09 22:36:38.901817415 +0100
***************
*** 1,6 ****
  " Test for v:hlsearch
  
! function! Test_hlsearch()
    new
    call setline(1, repeat(['aaa'], 10))
    set hlsearch nolazyredraw
--- 1,6 ----
  " Test for v:hlsearch
  
! func Test_hlsearch()
    new
    call setline(1, repeat(['aaa'], 10))
    set hlsearch nolazyredraw
***************
*** 30,36 ****
    call garbagecollect(1)
    call getchar(1)
    enew!
! endfunction
  
  func Test_hlsearch_hangs()
    if !has('reltime') || !has('float')
--- 30,36 ----
    call garbagecollect(1)
    call getchar(1)
    enew!
! endfunc
  
  func Test_hlsearch_hangs()
    if !has('reltime') || !has('float')
*** ../vim-8.1.0710/src/testdir/test_ins_complete.vim	2018-08-08 22:55:38.030420901 +0200
--- src/testdir/test_ins_complete.vim	2019-01-09 22:37:57.473043665 +0100
***************
*** 142,148 ****
    delfunc CompleteFunc
  endfunc
  
! function! s:CompleteDone_CompleteFuncDict( findstart, base )
    if a:findstart
      return 0
    endif
--- 142,148 ----
    delfunc CompleteFunc
  endfunc
  
! func s:CompleteDone_CompleteFuncDict( findstart, base )
    if a:findstart
      return 0
    endif
***************
*** 159,167 ****
              \ }
            \ ]
          \ }
! endfunction
  
! function! s:CompleteDone_CheckCompletedItemDict()
    call assert_equal( 'aword',          v:completed_item[ 'word' ] )
    call assert_equal( 'wrd',            v:completed_item[ 'abbr' ] )
    call assert_equal( 'extra text',     v:completed_item[ 'menu' ] )
--- 159,167 ----
              \ }
            \ ]
          \ }
! endfunc
  
! func s:CompleteDone_CheckCompletedItemDict()
    call assert_equal( 'aword',          v:completed_item[ 'word' ] )
    call assert_equal( 'wrd',            v:completed_item[ 'abbr' ] )
    call assert_equal( 'extra text',     v:completed_item[ 'menu' ] )
***************
*** 170,176 ****
    call assert_equal( 'test',           v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunction
  
  function Test_CompleteDoneDict()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemDict()
--- 170,176 ----
    call assert_equal( 'test',           v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunc
  
  function Test_CompleteDoneDict()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemDict()
***************
*** 186,192 ****
    au! CompleteDone
  endfunc
  
! function! s:CompleteDone_CompleteFuncDictNoUserData( findstart, base )
    if a:findstart
      return 0
    endif
--- 186,192 ----
    au! CompleteDone
  endfunc
  
! func s:CompleteDone_CompleteFuncDictNoUserData( findstart, base )
    if a:findstart
      return 0
    endif
***************
*** 202,210 ****
              \ }
            \ ]
          \ }
! endfunction
  
! function! s:CompleteDone_CheckCompletedItemDictNoUserData()
    call assert_equal( 'aword',          v:completed_item[ 'word' ] )
    call assert_equal( 'wrd',            v:completed_item[ 'abbr' ] )
    call assert_equal( 'extra text',     v:completed_item[ 'menu' ] )
--- 202,210 ----
              \ }
            \ ]
          \ }
! endfunc
  
! func s:CompleteDone_CheckCompletedItemDictNoUserData()
    call assert_equal( 'aword',          v:completed_item[ 'word' ] )
    call assert_equal( 'wrd',            v:completed_item[ 'abbr' ] )
    call assert_equal( 'extra text',     v:completed_item[ 'menu' ] )
***************
*** 213,219 ****
    call assert_equal( '',               v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunction
  
  function Test_CompleteDoneDictNoUserData()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemDictNoUserData()
--- 213,219 ----
    call assert_equal( '',               v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunc
  
  function Test_CompleteDoneDictNoUserData()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemDictNoUserData()
***************
*** 229,243 ****
    au! CompleteDone
  endfunc
  
! function! s:CompleteDone_CompleteFuncList( findstart, base )
    if a:findstart
      return 0
    endif
  
    return [ 'aword' ]
! endfunction
  
! function! s:CompleteDone_CheckCompletedItemList()
    call assert_equal( 'aword', v:completed_item[ 'word' ] )
    call assert_equal( '',      v:completed_item[ 'abbr' ] )
    call assert_equal( '',      v:completed_item[ 'menu' ] )
--- 229,243 ----
    au! CompleteDone
  endfunc
  
! func s:CompleteDone_CompleteFuncList( findstart, base )
    if a:findstart
      return 0
    endif
  
    return [ 'aword' ]
! endfunc
  
! func s:CompleteDone_CheckCompletedItemList()
    call assert_equal( 'aword', v:completed_item[ 'word' ] )
    call assert_equal( '',      v:completed_item[ 'abbr' ] )
    call assert_equal( '',      v:completed_item[ 'menu' ] )
***************
*** 246,252 ****
    call assert_equal( '',      v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunction
  
  function Test_CompleteDoneList()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemList()
--- 246,252 ----
    call assert_equal( '',      v:completed_item[ 'user_data' ] )
  
    let s:called_completedone = 1
! endfunc
  
  function Test_CompleteDoneList()
    au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemList()
*** ../vim-8.1.0710/src/testdir/test_lambda.vim	2018-05-22 18:31:30.001365739 +0200
--- src/testdir/test_lambda.vim	2019-01-09 22:40:53.407381391 +0100
***************
*** 1,34 ****
  " Test for lambda and closure
  
! function! Test_lambda_feature()
    call assert_equal(1, has('lambda'))
! endfunction
  
! function! Test_lambda_with_filter()
    let s:x = 2
    call assert_equal([2, 3], filter([1, 2, 3], {i, v -> v >= s:x}))
! endfunction
  
! function! Test_lambda_with_map()
    let s:x = 1
    call assert_equal([2, 3, 4], map([1, 2, 3], {i, v -> v + s:x}))
! endfunction
  
! function! Test_lambda_with_sort()
    call assert_equal([1, 2, 3, 4, 7], sort([3,7,2,1,4], {a, b -> a - b}))
! endfunction
  
! function! Test_lambda_with_timer()
    if !has('timers')
      return
    endif
  
    let s:n = 0
    let s:timer_id = 0
!   function! s:Foo()
      "let n = 0
      let s:timer_id = timer_start(50, {-> execute("let s:n += 1 | echo s:n", "")}, {"repeat": -1})
!   endfunction
  
    call s:Foo()
    sleep 200ms
--- 1,34 ----
  " Test for lambda and closure
  
! func Test_lambda_feature()
    call assert_equal(1, has('lambda'))
! endfunc
  
! func Test_lambda_with_filter()
    let s:x = 2
    call assert_equal([2, 3], filter([1, 2, 3], {i, v -> v >= s:x}))
! endfunc
  
! func Test_lambda_with_map()
    let s:x = 1
    call assert_equal([2, 3, 4], map([1, 2, 3], {i, v -> v + s:x}))
! endfunc
  
! func Test_lambda_with_sort()
    call assert_equal([1, 2, 3, 4, 7], sort([3,7,2,1,4], {a, b -> a - b}))
! endfunc
  
! func Test_lambda_with_timer()
    if !has('timers')
      return
    endif
  
    let s:n = 0
    let s:timer_id = 0
!   func! s:Foo()
      "let n = 0
      let s:timer_id = timer_start(50, {-> execute("let s:n += 1 | echo s:n", "")}, {"repeat": -1})
!   endfunc
  
    call s:Foo()
    sleep 200ms
***************
*** 40,51 ****
    call assert_true(m > 1)
    call assert_true(s:n > m + 1)
    call assert_true(s:n < 9)
! endfunction
  
! function! Test_lambda_with_partial()
    let l:Cb = function({... -> ['zero', a:1, a:2, a:3]}, ['one', 'two'])
    call assert_equal(['zero', 'one', 'two', 'three'], l:Cb('three'))
! endfunction
  
  function Test_lambda_fails()
    call assert_equal(3, {a, b -> a + b}(1, 2))
--- 40,51 ----
    call assert_true(m > 1)
    call assert_true(s:n > m + 1)
    call assert_true(s:n < 9)
! endfunc
  
! func Test_lambda_with_partial()
    let l:Cb = function({... -> ['zero', a:1, a:2, a:3]}, ['one', 'two'])
    call assert_equal(['zero', 'one', 'two', 'three'], l:Cb('three'))
! endfunc
  
  function Test_lambda_fails()
    call assert_equal(3, {a, b -> a + b}(1, 2))
***************
*** 58,116 ****
    call assert_equal('foo', x['>'])
  endfunc
  
! function! Test_lambda_capture_by_reference()
    let v = 1
    let l:F = {x -> x + v}
    let v = 2
    call assert_equal(12, l:F(10))
! endfunction
  
! function! Test_lambda_side_effect()
!   function! s:update_and_return(arr)
      let a:arr[1] = 5
      return a:arr
!   endfunction
  
!   function! s:foo(arr)
      return {-> s:update_and_return(a:arr)}
!   endfunction
  
    let arr = [3,2,1]
    call assert_equal([3, 5, 1], s:foo(arr)())
! endfunction
  
! function! Test_lambda_refer_local_variable_from_other_scope()
!   function! s:foo(X)
      return a:X() " refer l:x in s:bar()
!   endfunction
  
!   function! s:bar()
      let x = 123
      return s:foo({-> x})
!   endfunction
  
    call assert_equal(123, s:bar())
! endfunction
  
! function! Test_lambda_do_not_share_local_variable()
!   function! s:define_funcs()
      let l:One = {-> split(execute("let a = 'abc' | echo a"))[0]}
      let l:Two = {-> exists("a") ? a : "no"}
      return [l:One, l:Two]
!   endfunction
  
    let l:F = s:define_funcs()
  
    call assert_equal('no', l:F[1]())
    call assert_equal('abc', l:F[0]())
    call assert_equal('no', l:F[1]())
! endfunction
  
! function! Test_lambda_closure_counter()
!   function! s:foo()
      let x = 0
      return {-> [execute("let x += 1"), x][-1]}
!   endfunction
  
    let l:F = s:foo()
    call test_garbagecollect_now()
--- 58,116 ----
    call assert_equal('foo', x['>'])
  endfunc
  
! func Test_lambda_capture_by_reference()
    let v = 1
    let l:F = {x -> x + v}
    let v = 2
    call assert_equal(12, l:F(10))
! endfunc
  
! func Test_lambda_side_effect()
!   func! s:update_and_return(arr)
      let a:arr[1] = 5
      return a:arr
!   endfunc
  
!   func! s:foo(arr)
      return {-> s:update_and_return(a:arr)}
!   endfunc
  
    let arr = [3,2,1]
    call assert_equal([3, 5, 1], s:foo(arr)())
! endfunc
  
! func Test_lambda_refer_local_variable_from_other_scope()
!   func! s:foo(X)
      return a:X() " refer l:x in s:bar()
!   endfunc
  
!   func! s:bar()
      let x = 123
      return s:foo({-> x})
!   endfunc
  
    call assert_equal(123, s:bar())
! endfunc
  
! func Test_lambda_do_not_share_local_variable()
!   func! s:define_funcs()
      let l:One = {-> split(execute("let a = 'abc' | echo a"))[0]}
      let l:Two = {-> exists("a") ? a : "no"}
      return [l:One, l:Two]
!   endfunc
  
    let l:F = s:define_funcs()
  
    call assert_equal('no', l:F[1]())
    call assert_equal('abc', l:F[0]())
    call assert_equal('no', l:F[1]())
! endfunc
  
! func Test_lambda_closure_counter()
!   func! s:foo()
      let x = 0
      return {-> [execute("let x += 1"), x][-1]}
!   endfunc
  
    let l:F = s:foo()
    call test_garbagecollect_now()
***************
*** 118,169 ****
    call assert_equal(2, l:F())
    call assert_equal(3, l:F())
    call assert_equal(4, l:F())
! endfunction
  
! function! Test_lambda_with_a_var()
!   function! s:foo()
      let x = 2
      return {... -> a:000 + [x]}
!   endfunction
!   function! s:bar()
      return s:foo()(1)
!   endfunction
  
    call assert_equal([1, 2], s:bar())
! endfunction
  
! function! Test_lambda_call_lambda_from_lambda()
!   function! s:foo(x)
      let l:F1 = {-> {-> a:x}}
      return {-> l:F1()}
!   endfunction
  
    let l:F = s:foo(1)
    call assert_equal(1, l:F()())
! endfunction
  
! function! Test_lambda_delfunc()
!   function! s:gen()
      let pl = l:
      let l:Foo = {-> get(pl, "Foo", get(pl, "Bar", {-> 0}))}
      let l:Bar = l:Foo
      delfunction l:Foo
      return l:Bar
!   endfunction
  
    let l:F = s:gen()
    call assert_fails(':call l:F()', 'E933:')
! endfunction
  
! function! Test_lambda_scope()
!   function! s:NewCounter()
      let c = 0
      return {-> [execute('let c += 1'), c][-1]}
!   endfunction
  
!   function! s:NewCounter2()
      return {-> [execute('let c += 100'), c][-1]}
!   endfunction
  
    let l:C = s:NewCounter()
    let l:D = s:NewCounter2()
--- 118,169 ----
    call assert_equal(2, l:F())
    call assert_equal(3, l:F())
    call assert_equal(4, l:F())
! endfunc
  
! func Test_lambda_with_a_var()
!   func! s:foo()
      let x = 2
      return {... -> a:000 + [x]}
!   endfunc
!   func! s:bar()
      return s:foo()(1)
!   endfunc
  
    call assert_equal([1, 2], s:bar())
! endfunc
  
! func Test_lambda_call_lambda_from_lambda()
!   func! s:foo(x)
      let l:F1 = {-> {-> a:x}}
      return {-> l:F1()}
!   endfunc
  
    let l:F = s:foo(1)
    call assert_equal(1, l:F()())
! endfunc
  
! func Test_lambda_delfunc()
!   func! s:gen()
      let pl = l:
      let l:Foo = {-> get(pl, "Foo", get(pl, "Bar", {-> 0}))}
      let l:Bar = l:Foo
      delfunction l:Foo
      return l:Bar
!   endfunc
  
    let l:F = s:gen()
    call assert_fails(':call l:F()', 'E933:')
! endfunc
  
! func Test_lambda_scope()
!   func! s:NewCounter()
      let c = 0
      return {-> [execute('let c += 1'), c][-1]}
!   endfunc
  
!   func! s:NewCounter2()
      return {-> [execute('let c += 100'), c][-1]}
!   endfunc
  
    let l:C = s:NewCounter()
    let l:D = s:NewCounter2()
***************
*** 171,207 ****
    call assert_equal(1, l:C())
    call assert_fails(':call l:D()', 'E15:') " E121: then E15:
    call assert_equal(2, l:C())
! endfunction
  
! function! Test_lambda_share_scope()
!   function! s:New()
      let c = 0
      let l:Inc0 = {-> [execute('let c += 1'), c][-1]}
      let l:Dec0 = {-> [execute('let c -= 1'), c][-1]}
      return [l:Inc0, l:Dec0]
!   endfunction
  
    let [l:Inc, l:Dec] = s:New()
  
    call assert_equal(1, l:Inc())
    call assert_equal(2, l:Inc())
    call assert_equal(1, l:Dec())
! endfunction
  
! function! Test_lambda_circular_reference()
!   function! s:Foo()
      let d = {}
      let d.f = {-> d}
      return d.f
!   endfunction
  
    call s:Foo()
    call test_garbagecollect_now()
    let i = 0 | while i < 10000 | call s:Foo() | let i+= 1 | endwhile
    call test_garbagecollect_now()
! endfunction
  
! function! Test_lambda_combination()
    call assert_equal(2, {x -> {x -> x}}(1)(2))
    call assert_equal(10, {y -> {x -> x(y)(10)}({y -> y})}({z -> z}))
    call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
--- 171,207 ----
    call assert_equal(1, l:C())
    call assert_fails(':call l:D()', 'E15:') " E121: then E15:
    call assert_equal(2, l:C())
! endfunc
  
! func Test_lambda_share_scope()
!   func! s:New()
      let c = 0
      let l:Inc0 = {-> [execute('let c += 1'), c][-1]}
      let l:Dec0 = {-> [execute('let c -= 1'), c][-1]}
      return [l:Inc0, l:Dec0]
!   endfunc
  
    let [l:Inc, l:Dec] = s:New()
  
    call assert_equal(1, l:Inc())
    call assert_equal(2, l:Inc())
    call assert_equal(1, l:Dec())
! endfunc
  
! func Test_lambda_circular_reference()
!   func! s:Foo()
      let d = {}
      let d.f = {-> d}
      return d.f
!   endfunc
  
    call s:Foo()
    call test_garbagecollect_now()
    let i = 0 | while i < 10000 | call s:Foo() | let i+= 1 | endwhile
    call test_garbagecollect_now()
! endfunc
  
! func Test_lambda_combination()
    call assert_equal(2, {x -> {x -> x}}(1)(2))
    call assert_equal(10, {y -> {x -> x(y)(10)}({y -> y})}({z -> z}))
    call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
***************
*** 214,230 ****
    let Z = {f -> {x -> f({y -> x(x)(y)})}({x -> f({y -> x(x)(y)})})}
    let Fact = {f -> {x -> x == 0 ? 1 : x * f(x - 1)}}
    call assert_equal(120, Z(Fact)(5))
! endfunction
  
! function! Test_closure_counter()
!   function! s:foo()
      let x = 0
!     function! s:bar() closure
        let x += 1
        return x
!     endfunction
      return function('s:bar')
!   endfunction
  
    let l:F = s:foo()
    call test_garbagecollect_now()
--- 214,230 ----
    let Z = {f -> {x -> f({y -> x(x)(y)})}({x -> f({y -> x(x)(y)})})}
    let Fact = {f -> {x -> x == 0 ? 1 : x * f(x - 1)}}
    call assert_equal(120, Z(Fact)(5))
! endfunc
  
! func Test_closure_counter()
!   func! s:foo()
      let x = 0
!     func! s:bar() closure
        let x += 1
        return x
!     endfunc
      return function('s:bar')
!   endfunc
  
    let l:F = s:foo()
    call test_garbagecollect_now()
***************
*** 232,261 ****
    call assert_equal(2, l:F())
    call assert_equal(3, l:F())
    call assert_equal(4, l:F())
! endfunction
  
! function! Test_closure_unlet()
!   function! s:foo()
      let x = 1
!     function! s:bar() closure
        unlet x
!     endfunction
      call s:bar()
      return l:
!   endfunction
  
    call assert_false(has_key(s:foo(), 'x'))
    call test_garbagecollect_now()
! endfunction
  
! function! LambdaFoo()
    let x = 0
!   function! LambdaBar() closure
      let x += 1
      return x
!   endfunction
    return function('LambdaBar')
! endfunction
  
  func Test_closure_refcount()
    let g:Count = LambdaFoo()
--- 232,261 ----
    call assert_equal(2, l:F())
    call assert_equal(3, l:F())
    call assert_equal(4, l:F())
! endfunc
  
! func Test_closure_unlet()
!   func! s:foo()
      let x = 1
!     func! s:bar() closure
        unlet x
!     endfunc
      call s:bar()
      return l:
!   endfunc
  
    call assert_false(has_key(s:foo(), 'x'))
    call test_garbagecollect_now()
! endfunc
  
! func LambdaFoo()
    let x = 0
!   func! LambdaBar() closure
      let x += 1
      return x
!   endfunc
    return function('LambdaBar')
! endfunc
  
  func Test_closure_refcount()
    let g:Count = LambdaFoo()
*** ../vim-8.1.0710/src/testdir/test_listdict.vim	2018-09-30 17:16:22.199142095 +0200
--- src/testdir/test_listdict.vim	2019-01-09 22:55:10.776013666 +0100
***************
*** 499,517 ****
  endfunc
  
  " No remove() of write-protected scope-level variable
! func! Tfunc(this_is_a_long_parameter_name)
    call assert_fails("call remove(a:, 'this_is_a_long_parameter_name')", 'E795')
! endfun
  func Test_dict_scope_var_remove()
!   call Tfunc('testval')
  endfunc
  
  " No extend() of write-protected scope-level variable
! func! Tfunc(this_is_a_long_parameter_name)
    call assert_fails("call extend(a:, {'this_is_a_long_parameter_name': 1234})", 'E742')
  endfunc
  func Test_dict_scope_var_extend()
!   call Tfunc('testval')
  endfunc
  
  " No :unlet of variable in locked scope
--- 499,517 ----
  endfunc
  
  " No remove() of write-protected scope-level variable
! func Tfunc1(this_is_a_long_parameter_name)
    call assert_fails("call remove(a:, 'this_is_a_long_parameter_name')", 'E795')
! endfunc
  func Test_dict_scope_var_remove()
!   call Tfunc1('testval')
  endfunc
  
  " No extend() of write-protected scope-level variable
! func Tfunc2(this_is_a_long_parameter_name)
    call assert_fails("call extend(a:, {'this_is_a_long_parameter_name': 1234})", 'E742')
  endfunc
  func Test_dict_scope_var_extend()
!   call Tfunc2('testval')
  endfunc
  
  " No :unlet of variable in locked scope
*** ../vim-8.1.0710/src/testdir/test_listlbr.vim	2017-03-01 17:12:54.000000000 +0100
--- src/testdir/test_listlbr.vim	2019-01-09 22:41:37.282979294 +0100
***************
*** 13,21 ****
    return ScreenLines(a:lnum, a:width)
  endfunction
  
! function! s:compare_lines(expect, actual)
    call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
! endfunction
  
  function s:test_windows(...)
    call NewWindow(10, 20)
--- 13,21 ----
    return ScreenLines(a:lnum, a:width)
  endfunction
  
! func s:compare_lines(expect, actual)
    call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
! endfunc
  
  function s:test_windows(...)
    call NewWindow(10, 20)
*** ../vim-8.1.0710/src/testdir/test_listlbr_utf8.vim	2017-06-25 17:52:58.000000000 +0200
--- src/testdir/test_listlbr_utf8.vim	2019-01-09 22:42:04.510731883 +0100
***************
*** 9,23 ****
  
  source view_util.vim
  
! function s:screen_lines(lnum, width) abort
    return ScreenLines(a:lnum, a:width)
! endfunction
  
! function! s:compare_lines(expect, actual)
    call assert_equal(a:expect, a:actual)
! endfunction
  
! function s:screen_attr(lnum, chars, ...) abort
    let line = getline(a:lnum)
    let attr = []
    let prefix = get(a:000, 0, 0)
--- 9,23 ----
  
  source view_util.vim
  
! func s:screen_lines(lnum, width) abort
    return ScreenLines(a:lnum, a:width)
! endfunc
  
! func s:compare_lines(expect, actual)
    call assert_equal(a:expect, a:actual)
! endfunc
  
! func s:screen_attr(lnum, chars, ...) abort
    let line = getline(a:lnum)
    let attr = []
    let prefix = get(a:000, 0, 0)
***************
*** 26,43 ****
      let attr += [screenattr(a:lnum, scol + prefix)]
    endfor
    return attr
! endfunction
  
! function s:test_windows(...)
    call NewWindow(10, 20)
    setl ts=4 sw=4 sts=4 linebreak sbr=+ wrap
    exe get(a:000, 0, '')
! endfunction
  
! function s:close_windows(...)
    call CloseWindow()
    exe get(a:000, 0, '')
! endfunction
  
  func Test_linebreak_with_fancy_listchars()
    call s:test_windows("setl list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6")
--- 26,43 ----
      let attr += [screenattr(a:lnum, scol + prefix)]
    endfor
    return attr
! endfunc
  
! func s:test_windows(...)
    call NewWindow(10, 20)
    setl ts=4 sw=4 sts=4 linebreak sbr=+ wrap
    exe get(a:000, 0, '')
! endfunc
  
! func s:close_windows(...)
    call CloseWindow()
    exe get(a:000, 0, '')
! endfunc
  
  func Test_linebreak_with_fancy_listchars()
    call s:test_windows("setl list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6")
*** ../vim-8.1.0710/src/testdir/test_marks.vim	2018-07-10 15:22:28.710142328 +0200
--- src/testdir/test_marks.vim	2019-01-09 22:42:25.030546439 +0100
***************
*** 1,6 ****
  
  " Test that a deleted mark is restored after delete-undo-redo-undo.
! function! Test_Restore_DelMark()
    enew!
    call append(0, ["	textline A", "	textline B", "	textline C"])
    normal! 2gg
--- 1,6 ----
  
  " Test that a deleted mark is restored after delete-undo-redo-undo.
! func Test_Restore_DelMark()
    enew!
    call append(0, ["	textline A", "	textline B", "	textline C"])
    normal! 2gg
***************
*** 11,20 ****
    call assert_equal(2, pos[1])
    call assert_equal(1, pos[2])
    enew!
! endfunction
  
  " Test that CTRL-A and CTRL-X updates last changed mark '[, '].
! function! Test_Incr_Marks()
    enew!
    call append(0, ["123 123 123", "123 123 123", "123 123 123"])
    normal! gg
--- 11,20 ----
    call assert_equal(2, pos[1])
    call assert_equal(1, pos[2])
    enew!
! endfunc
  
  " Test that CTRL-A and CTRL-X updates last changed mark '[, '].
! func Test_Incr_Marks()
    enew!
    call append(0, ["123 123 123", "123 123 123", "123 123 123"])
    normal! gg
***************
*** 23,29 ****
    call assert_equal("123 XXXXXXX", getline(2))
    call assert_equal("XXX 123 123", getline(3))
    enew!
! endfunction
  
  func Test_setpos()
    new one
--- 23,29 ----
    call assert_equal("123 XXXXXXX", getline(2))
    call assert_equal("XXX 123 123", getline(3))
    enew!
! endfunc
  
  func Test_setpos()
    new one
*** ../vim-8.1.0710/src/testdir/test_matchadd_conceal.vim	2018-02-27 20:11:53.000000000 +0100
--- src/testdir/test_matchadd_conceal.vim	2019-01-09 22:43:19.454058524 +0100
***************
*** 9,15 ****
  
  source shared.vim
  
! function! Test_simple_matchadd()
    new
  
    1put='# This is a Test'
--- 9,15 ----
  
  source shared.vim
  
! func Test_simple_matchadd()
    new
  
    1put='# This is a Test'
***************
*** 29,37 ****
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunction
  
! function! Test_simple_matchadd_and_conceal()
    new
    setlocal concealcursor=n conceallevel=1
  
--- 29,37 ----
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunc
  
! func Test_simple_matchadd_and_conceal()
    new
    setlocal concealcursor=n conceallevel=1
  
***************
*** 51,59 ****
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunction
  
! function! Test_matchadd_and_conceallevel_3()
    new
  
    setlocal conceallevel=3
--- 51,59 ----
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunc
  
! func Test_matchadd_and_conceallevel_3()
    new
  
    setlocal conceallevel=3
***************
*** 92,100 ****
  
    syntax off
    quit!
! endfunction
  
! function! Test_default_conceal_char()
    new
    setlocal concealcursor=n conceallevel=1
  
--- 92,100 ----
  
    syntax off
    quit!
! endfunc
  
! func Test_default_conceal_char()
    new
    setlocal concealcursor=n conceallevel=1
  
***************
*** 128,136 ****
  
    let &listchars = listchars_save
    quit!
! endfunction
  
! function! Test_syn_and_match_conceal()
    new
    setlocal concealcursor=n conceallevel=1
  
--- 128,136 ----
  
    let &listchars = listchars_save
    quit!
! endfunc
  
! func Test_syn_and_match_conceal()
    new
    setlocal concealcursor=n conceallevel=1
  
***************
*** 164,172 ****
  
    syntax off
    quit!
! endfunction
  
! function! Test_clearmatches()
    new
    setlocal concealcursor=n conceallevel=1
  
--- 164,172 ----
  
    syntax off
    quit!
! endfunc
  
! func Test_clearmatches()
    new
    setlocal concealcursor=n conceallevel=1
  
***************
*** 203,211 ****
    call assert_equal({'group': 'Conceal', 'pattern': '\%2l ', 'priority': 10, 'id': a[0].id, 'conceal': 'Z'}, a[0])
  
    quit!
! endfunction
  
! function! Test_using_matchaddpos()
    new
    setlocal concealcursor=n conceallevel=1
    " set filetype and :syntax on to change screenattr()
--- 203,211 ----
    call assert_equal({'group': 'Conceal', 'pattern': '\%2l ', 'priority': 10, 'id': a[0].id, 'conceal': 'Z'}, a[0])
  
    quit!
! endfunc
  
! func Test_using_matchaddpos()
    new
    setlocal concealcursor=n conceallevel=1
    " set filetype and :syntax on to change screenattr()
***************
*** 234,242 ****
  
    syntax off
    quit!
! endfunction
  
! function! Test_matchadd_repeat_conceal_with_syntax_off()
    new
  
    " To test targets in the same line string is replaced with conceal char
--- 234,242 ----
  
    syntax off
    quit!
! endfunc
  
! func Test_matchadd_repeat_conceal_with_syntax_off()
    new
  
    " To test targets in the same line string is replaced with conceal char
***************
*** 253,261 ****
    call assert_equal('t_tt', Screenline(2))
  
    quit!
! endfunction
  
! function! Test_matchadd_and_syn_conceal()
    new
    let cnt='Inductive bool : Type := | true : bool | false : bool.'
    let expect = 'Inductive - : Type := | true : - | false : -.'
--- 253,261 ----
    call assert_equal('t_tt', Screenline(2))
  
    quit!
! endfunc
  
! func Test_matchadd_and_syn_conceal()
    new
    let cnt='Inductive bool : Type := | true : bool | false : bool.'
    let expect = 'Inductive - : Type := | true : - | false : -.'
***************
*** 276,279 ****
    call assert_notequal(screenattr(1, 10) , screenattr(1, 11))
    call assert_notequal(screenattr(1, 11) , screenattr(1, 12))
    call assert_equal(screenattr(1, 11) , screenattr(1, 32))
! endfunction
--- 276,279 ----
    call assert_notequal(screenattr(1, 10) , screenattr(1, 11))
    call assert_notequal(screenattr(1, 11) , screenattr(1, 12))
    call assert_equal(screenattr(1, 11) , screenattr(1, 32))
! endfunc
*** ../vim-8.1.0710/src/testdir/test_matchadd_conceal_utf8.vim	2016-07-21 20:10:48.000000000 +0200
--- src/testdir/test_matchadd_conceal_utf8.vim	2019-01-09 22:43:42.721851560 +0100
***************
*** 7,25 ****
    set term=ansi
  endif
  
! function! s:screenline(lnum) abort
    let line = []
    for c in range(1, winwidth(0))
      call add(line, nr2char(screenchar(a:lnum, c)))
    endfor
    return s:trim(join(line, ''))
! endfunction
  
! function! s:trim(str) abort
    return matchstr(a:str,'^\s*\zs.\{-}\ze\s*$')
! endfunction
  
! function! Test_match_using_multibyte_conceal_char()
    new
    setlocal concealcursor=n conceallevel=1
  
--- 7,25 ----
    set term=ansi
  endif
  
! func s:screenline(lnum) abort
    let line = []
    for c in range(1, winwidth(0))
      call add(line, nr2char(screenchar(a:lnum, c)))
    endfor
    return s:trim(join(line, ''))
! endfunc
  
! func s:trim(str) abort
    return matchstr(a:str,'^\s*\zs.\{-}\ze\s*$')
! endfunc
  
! func Test_match_using_multibyte_conceal_char()
    new
    setlocal concealcursor=n conceallevel=1
  
***************
*** 40,43 ****
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunction
--- 40,43 ----
    call assert_equal(screenattr(lnum, 1), screenattr(lnum, 16))
  
    quit!
! endfunc
*** ../vim-8.1.0710/src/testdir/test_messages.vim	2018-12-22 13:27:59.119503967 +0100
--- src/testdir/test_messages.vim	2019-01-09 22:44:04.793656085 +0100
***************
*** 43,49 ****
  " indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked.  Message
  " output could then be disturbed when 'cmdheight' was greater than one.
  " This test ensures that the bugfix for this issue remains in place.
! function! Test_stopinsert_does_not_break_message_output()
    set cmdheight=2
    redraw!
  
--- 43,49 ----
  " indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked.  Message
  " output could then be disturbed when 'cmdheight' was greater than one.
  " This test ensures that the bugfix for this issue remains in place.
! func Test_stopinsert_does_not_break_message_output()
    set cmdheight=2
    redraw!
  
***************
*** 58,64 ****
    redraw!
  
    set cmdheight&
! endfunction
  
  func Test_message_completion()
    call feedkeys(":message \<C-A>\<C-B>\"\<CR>", 'tx')
--- 58,64 ----
    redraw!
  
    set cmdheight&
! endfunc
  
  func Test_message_completion()
    call feedkeys(":message \<C-A>\<C-B>\"\<CR>", 'tx')
*** ../vim-8.1.0710/src/testdir/test_number.vim	2017-02-23 18:23:28.000000000 +0100
--- src/testdir/test_number.vim	2019-01-09 22:44:44.669304914 +0100
***************
*** 2,24 ****
  
  source view_util.vim
  
! func! s:screen_lines(start, end) abort
    return ScreenLines([a:start, a:end], 8)
  endfunc
  
! func! s:compare_lines(expect, actual)
    call assert_equal(a:expect, a:actual)
  endfunc
  
! func! s:test_windows(h, w) abort
    call NewWindow(a:h, a:w)
  endfunc
  
! func! s:close_windows() abort
    call CloseWindow()
  endfunc
  
! func! s:validate_cursor() abort
    " update skipcol.
    " wincol():
    "   f_wincol
--- 2,24 ----
  
  source view_util.vim
  
! func s:screen_lines(start, end) abort
    return ScreenLines([a:start, a:end], 8)
  endfunc
  
! func s:compare_lines(expect, actual)
    call assert_equal(a:expect, a:actual)
  endfunc
  
! func s:test_windows(h, w) abort
    call NewWindow(a:h, a:w)
  endfunc
  
! func s:close_windows() abort
    call CloseWindow()
  endfunc
  
! func s:validate_cursor() abort
    " update skipcol.
    " wincol():
    "   f_wincol
*** ../vim-8.1.0710/src/testdir/test_options.vim	2018-10-02 15:06:36.761478333 +0200
--- src/testdir/test_options.vim	2019-01-09 22:45:10.113082099 +0100
***************
*** 1,6 ****
  " Test for options
  
! function! Test_whichwrap()
    set whichwrap=b,s
    call assert_equal('b,s', &whichwrap)
  
--- 1,6 ----
  " Test for options
  
! func Test_whichwrap()
    set whichwrap=b,s
    call assert_equal('b,s', &whichwrap)
  
***************
*** 20,35 ****
    call assert_equal('h', &whichwrap)
  
    set whichwrap&
! endfunction
  
! function! Test_isfname()
    " This used to cause Vim to access uninitialized memory.
    set isfname=
    call assert_equal("~X", expand("~X"))
    set isfname&
! endfunction
  
! function Test_wildchar()
    " Empty 'wildchar' used to access invalid memory.
    call assert_fails('set wildchar=', 'E521:')
    call assert_fails('set wildchar=abc', 'E521:')
--- 20,35 ----
    call assert_equal('h', &whichwrap)
  
    set whichwrap&
! endfunc
  
! func Test_isfname()
    " This used to cause Vim to access uninitialized memory.
    set isfname=
    call assert_equal("~X", expand("~X"))
    set isfname&
! endfunc
  
! func Test_wildchar()
    " Empty 'wildchar' used to access invalid memory.
    call assert_fails('set wildchar=', 'E521:')
    call assert_fails('set wildchar=abc', 'E521:')
***************
*** 40,48 ****
    let a=execute('set wildchar?')
    call assert_equal("\n  wildchar=<Esc>", a)
    set wildchar&
! endfunction
  
! function Test_options()
    let caught = 'ok'
    try
      options
--- 40,48 ----
    let a=execute('set wildchar?')
    call assert_equal("\n  wildchar=<Esc>", a)
    set wildchar&
! endfunc
  
! func Test_options()
    let caught = 'ok'
    try
      options
***************
*** 53,61 ****
  
    " close option-window
    close
! endfunction
  
! function Test_path_keep_commas()
    " Test that changing 'path' keeps two commas.
    set path=foo,,bar
    set path-=bar
--- 53,61 ----
  
    " close option-window
    close
! endfunc
  
! func Test_path_keep_commas()
    " Test that changing 'path' keeps two commas.
    set path=foo,,bar
    set path-=bar
***************
*** 63,69 ****
    call assert_equal('foo,,bar', &path)
  
    set path&
! endfunction
  
  func Test_signcolumn()
    if has('signs')
--- 63,69 ----
    call assert_equal('foo,,bar', &path)
  
    set path&
! endfunc
  
  func Test_signcolumn()
    if has('signs')
*** ../vim-8.1.0710/src/testdir/test_partial.vim	2016-08-11 22:46:37.000000000 +0200
--- src/testdir/test_partial.vim	2019-01-09 22:45:36.684850393 +0100
***************
*** 114,122 ****
    call OuterCall()
  endfunc
  
! function! s:cache_clear() dict
    return self.name
! endfunction
  
  func Test_script_function_in_dict()
    let s:obj = {'name': 'foo'}
--- 114,122 ----
    call OuterCall()
  endfunc
  
! func s:cache_clear() dict
    return self.name
! endfunc
  
  func Test_script_function_in_dict()
    let s:obj = {'name': 'foo'}
***************
*** 136,145 ****
    call assert_equal('bar', B())
  endfunc
  
! function! s:cache_arg(arg) dict
    let s:result = self.name . '/' . a:arg
    return s:result
! endfunction
  
  func Test_script_function_in_dict_arg()
    let s:obj = {'name': 'foo'}
--- 136,145 ----
    call assert_equal('bar', B())
  endfunc
  
! func s:cache_arg(arg) dict
    let s:result = self.name . '/' . a:arg
    return s:result
! endfunc
  
  func Test_script_function_in_dict_arg()
    let s:obj = {'name': 'foo'}
*** ../vim-8.1.0710/src/testdir/test_smartindent.vim	2017-08-03 17:53:54.000000000 +0200
--- src/testdir/test_smartindent.vim	2019-01-09 22:46:34.496349516 +0100
***************
*** 1,24 ****
  " Tests for smartindent
  
  " Tests for not doing smart indenting when it isn't set.
! function! Test_nosmartindent()
    new
    call append(0, ["		some test text",
!       	\ "		test text",
!       	\ "test text",
!       	\ "		test text"])
    set nocindent nosmartindent autoindent
    exe "normal! gg/some\<CR>"
    exe "normal! 2cc#test\<Esc>"
    call assert_equal("		#test", getline(1))
    enew! | close
! endfunction
  
! function MyIndent()
! endfunction
  
  " When 'indentexpr' is set, setting 'si' has no effect.
! function Test_smartindent_has_no_effect()
    new
    exe "normal! i\<Tab>one\<Esc>"
    set noautoindent
--- 1,24 ----
  " Tests for smartindent
  
  " Tests for not doing smart indenting when it isn't set.
! func Test_nosmartindent()
    new
    call append(0, ["		some test text",
! 	\ "		test text",
! 	\ "test text",
! 	\ "		test text"])
    set nocindent nosmartindent autoindent
    exe "normal! gg/some\<CR>"
    exe "normal! 2cc#test\<Esc>"
    call assert_equal("		#test", getline(1))
    enew! | close
! endfunc
  
! func MyIndent()
! endfunc
  
  " When 'indentexpr' is set, setting 'si' has no effect.
! func Test_smartindent_has_no_effect()
    new
    exe "normal! i\<Tab>one\<Esc>"
    set noautoindent
***************
*** 36,41 ****
    set smartindent&
    set indentexpr&
    bwipe!
! endfunction
  
  " vim: shiftwidth=2 sts=2 expandtab
--- 36,41 ----
    set smartindent&
    set indentexpr&
    bwipe!
! endfunc
  
  " vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.1.0710/src/testdir/test_substitute.vim	2017-10-26 19:57:28.000000000 +0200
--- src/testdir/test_substitute.vim	2019-01-09 22:47:00.292127354 +0100
***************
*** 1,6 ****
  " Tests for multi-line regexps with ":s".
  
! function! Test_multiline_subst()
    enew!
    call append(0, ["1 aa",
  	      \ "bb",
--- 1,6 ----
  " Tests for multi-line regexps with ":s".
  
! func Test_multiline_subst()
    enew!
    call append(0, ["1 aa",
  	      \ "bb",
***************
*** 38,46 ****
    call assert_equal('7x7f', getline(12))
    call assert_equal('xxxxx', getline(13))
    enew!
! endfunction
  
! function! Test_substitute_variants()
    " Validate that all the 2-/3-letter variants which embed the flags into the
    " command name actually work.
    enew!
--- 38,46 ----
    call assert_equal('7x7f', getline(12))
    call assert_equal('xxxxx', getline(13))
    enew!
! endfunc
  
! func Test_substitute_variants()
    " Validate that all the 2-/3-letter variants which embed the flags into the
    " command name actually work.
    enew!
***************
*** 105,111 ****
        call assert_equal(var.exp, getline('.'), msg)
      endfor
    endfor
! endfunction
  
  func Test_substitute_repeat()
    " This caused an invalid memory access.
--- 105,111 ----
        call assert_equal(var.exp, getline('.'), msg)
      endfor
    endfor
! endfunc
  
  func Test_substitute_repeat()
    " This caused an invalid memory access.
***************
*** 401,409 ****
  
    " List entry format: [input, cmd, output]
    let tests = [ ['aAa', "s/A/\\=substitute(submatch(0), '.', '\\', '')/",
! 	      \ 			['a\a']],
  	      \ ['bBb', "s/B/\\=substitute(submatch(0), '.', '\\', '')/",
! 	      \   			['b\b']],
  	      \ ['cCc', "s/C/\\=substitute(submatch(0), '.', '\<C-V>\<C-M>', '')/",
  	      \				["c\<C-V>", 'c']],
  	      \ ['dDd', "s/D/\\=substitute(submatch(0), '.', '\\\<C-V>\<C-M>', '')/",
--- 401,409 ----
  
    " List entry format: [input, cmd, output]
    let tests = [ ['aAa', "s/A/\\=substitute(submatch(0), '.', '\\', '')/",
! 	      \				['a\a']],
  	      \ ['bBb', "s/B/\\=substitute(submatch(0), '.', '\\', '')/",
! 	      \				['b\b']],
  	      \ ['cCc', "s/C/\\=substitute(submatch(0), '.', '\<C-V>\<C-M>', '')/",
  	      \				["c\<C-V>", 'c']],
  	      \ ['dDd', "s/D/\\=substitute(submatch(0), '.', '\\\<C-V>\<C-M>', '')/",
*** ../vim-8.1.0710/src/testdir/test_system.vim	2017-12-20 22:05:10.000000000 +0100
--- src/testdir/test_system.vim	2019-01-09 22:47:27.771891532 +0100
***************
*** 1,6 ****
  " Tests for system() and systemlist()
  
! function! Test_System()
    if !executable('echo') || !executable('cat') || !executable('wc')
      return
    endif
--- 1,6 ----
  " Tests for system() and systemlist()
  
! func Test_System()
    if !executable('echo') || !executable('cat') || !executable('wc')
      return
    endif
***************
*** 45,53 ****
    bwipe!
  
    call assert_fails('call system("wc -l", 99999)', 'E86:')
! endfunction
  
! function! Test_system_exmode()
    if has('unix') " echo $? only works on Unix
      let cmd = ' -es -u NONE -c "source Xscript" +q; echo "result=$?"'
      " Need to put this in a script, "catch" isn't found after an unknown
--- 45,53 ----
    bwipe!
  
    call assert_fails('call system("wc -l", 99999)', 'E86:')
! endfunc
  
! func Test_system_exmode()
    if has('unix') " echo $? only works on Unix
      let cmd = ' -es -u NONE -c "source Xscript" +q; echo "result=$?"'
      " Need to put this in a script, "catch" isn't found after an unknown
*** ../vim-8.1.0710/src/testdir/test_terminal.vim	2018-12-24 19:15:15.551304134 +0100
--- src/testdir/test_terminal.vim	2019-01-09 22:47:35.611824406 +0100
***************
*** 122,128 ****
    unlet g:job
  endfunc
  
! func! s:Nasty_exit_cb(job, st)
    exe g:buf . 'bwipe!'
    let g:buf = 0
  endfunc
--- 122,128 ----
    unlet g:job
  endfunc
  
! func s:Nasty_exit_cb(job, st)
    exe g:buf . 'bwipe!'
    let g:buf = 0
  endfunc
***************
*** 1727,1729 ****
--- 1727,1753 ----
    let term = term_start('false', {'term_finish': 'close'})
    call WaitForAssert({-> assert_equal(v:null, term_getjob(term)) })
  endfunc
+ 
+ func Test_term_gettitle()
+   if !has('title') || empty(&t_ts)
+     return
+   endif
+   " TODO: this fails on Travis
+   return
+ 
+   " term_gettitle() returns an empty string for a non-terminal buffer
+   " or for a non-existing buffer.
+   call assert_equal('', term_gettitle(bufnr('%')))
+   call assert_equal('', term_gettitle(bufnr('$') + 1))
+ 
+   let term = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile'])
+   call WaitForAssert({-> assert_equal('[No Name] - VIM', term_gettitle(term)) })
+ 
+   call term_sendkeys(term, ":e Xfoo\r")
+   call WaitForAssert({-> assert_match('Xfoo (.*[/\\]testdir) - VIM', term_gettitle(term)) })
+ 
+   call term_sendkeys(term, ":set titlestring=foo\r")
+   call WaitForAssert({-> assert_equal('foo', term_gettitle(term)) })
+ 
+   exe term . 'bwipe!'
+ endfunc
*** ../vim-8.1.0710/src/testdir/test_textobjects.vim	2018-08-16 21:37:46.389318767 +0200
--- src/testdir/test_textobjects.vim	2019-01-09 22:47:49.067709349 +0100
***************
*** 236,242 ****
    %delete _
  endfunc
  
! func! Test_sentence_with_cursor_on_delimiter()
    enew!
    call setline(1, "A '([sentence.])'  A sentence.")
  
--- 236,242 ----
    %delete _
  endfunc
  
! func Test_sentence_with_cursor_on_delimiter()
    enew!
    call setline(1, "A '([sentence.])'  A sentence.")
  
*** ../vim-8.1.0710/src/testdir/test_utf8.vim	2017-03-18 22:49:29.000000000 +0100
--- src/testdir/test_utf8.vim	2019-01-09 22:48:16.191477993 +0100
***************
*** 25,41 ****
  endfunc
  
  " Test for customlist completion
! function! CustomComplete1(lead, line, pos)
  	return ['あ', 'い']
! endfunction
  
! function! CustomComplete2(lead, line, pos)
  	return ['あたし', 'あたま', 'あたりめ']
! endfunction
  
! function! CustomComplete3(lead, line, pos)
  	return ['Nこ', 'Nん', 'Nぶ']
! endfunction
  
  func Test_customlist_completion()
    command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
--- 25,41 ----
  endfunc
  
  " Test for customlist completion
! func CustomComplete1(lead, line, pos)
  	return ['あ', 'い']
! endfunc
  
! func CustomComplete2(lead, line, pos)
  	return ['あたし', 'あたま', 'あたりめ']
! endfunc
  
! func CustomComplete3(lead, line, pos)
  	return ['Nこ', 'Nん', 'Nぶ']
! endfunc
  
  func Test_customlist_completion()
    command -nargs=1 -complete=customlist,CustomComplete1 Test1 echo
*** ../vim-8.1.0710/src/testdir/test_utf8_comparisons.vim	2017-06-27 18:20:28.000000000 +0200
--- src/testdir/test_utf8_comparisons.vim	2019-01-09 22:48:57.287128840 +0100
***************
*** 5,16 ****
    finish
  endif
  
! function! Ch(a, op, b, expected)
    call assert_equal(eval(printf('"%s" %s "%s"', a:a, a:op, a:b)), a:expected,
          \ printf('"%s" %s "%s" should return %d', a:a, a:op, a:b, a:expected))
! endfunction
  
! function! Chk(a, b, result)
    if a:result == 0
      call Ch(a:a, '==?', a:b, 1)
      call Ch(a:a, '!=?', a:b, 0)
--- 5,16 ----
    finish
  endif
  
! func Ch(a, op, b, expected)
    call assert_equal(eval(printf('"%s" %s "%s"', a:a, a:op, a:b)), a:expected,
          \ printf('"%s" %s "%s" should return %d', a:a, a:op, a:b, a:expected))
! endfunc
  
! func Chk(a, b, result)
    if a:result == 0
      call Ch(a:a, '==?', a:b, 1)
      call Ch(a:a, '!=?', a:b, 0)
***************
*** 33,58 ****
      call Ch(a:a, '<?', a:b, 1)
      call Ch(a:a, '>?', a:b, 0)
    endif
! endfunction
  
! function! Check(a, b, result)
    call Chk(a:a, a:b, a:result)
    call Chk(a:b, a:a, -a:result)
! endfunction
  
! function! LT(a, b)
    call Check(a:a, a:b, -1)
! endfunction
  
! function! GT(a, b)
    call Check(a:a, a:b, 1)
! endfunction
  
! function! EQ(a, b)
    call Check(a:a, a:b, 0)
! endfunction
  
! function Test_comparisons()
    call EQ('', '')
    call LT('', 'a')
    call EQ('abc', 'abc')
--- 33,58 ----
      call Ch(a:a, '<?', a:b, 1)
      call Ch(a:a, '>?', a:b, 0)
    endif
! endfunc
  
! func Check(a, b, result)
    call Chk(a:a, a:b, a:result)
    call Chk(a:b, a:a, -a:result)
! endfunc
  
! func LT(a, b)
    call Check(a:a, a:b, -1)
! endfunc
  
! func GT(a, b)
    call Check(a:a, a:b, 1)
! endfunc
  
! func EQ(a, b)
    call Check(a:a, a:b, 0)
! endfunc
  
! func Test_comparisons()
    call EQ('', '')
    call LT('', 'a')
    call EQ('abc', 'abc')
***************
*** 85,95 ****
    for n in range(0xC0, 0xFF)
      call LT(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n))
    endfor
! endfunction
  
  " test that g~ap changes one paragraph only.
! function Test_gap()
    new
    call feedkeys("iabcd\n\ndefggg0g~ap", "tx")
    call assert_equal(["ABCD", "", "defg"], getline(1,3))
! endfunction
--- 85,95 ----
    for n in range(0xC0, 0xFF)
      call LT(printf('xYz\xc2\x%.2XUvW', n), printf('XyZ\xc2\x%.2XuVw', n))
    endfor
! endfunc
  
  " test that g~ap changes one paragraph only.
! func Test_gap()
    new
    call feedkeys("iabcd\n\ndefggg0g~ap", "tx")
    call assert_equal(["ABCD", "", "defg"], getline(1,3))
! endfunc
*** ../vim-8.1.0710/src/testdir/test_vartabs.vim	2018-11-22 03:07:30.948596188 +0100
--- src/testdir/test_vartabs.vim	2019-01-09 22:49:05.211061699 +0100
***************
*** 134,140 ****
    bwipeout!
  endfunc
  
! func! Test_vartabs_breakindent()
    if !exists("+breakindent")
      return
    endif
--- 134,140 ----
    bwipeout!
  endfunc
  
! func Test_vartabs_breakindent()
    if !exists("+breakindent")
      return
    endif
*** ../vim-8.1.0710/src/testdir/test_vimscript.vim	2017-09-23 18:58:18.000000000 +0200
--- src/testdir/test_vimscript.vim	2019-01-09 22:50:51.474166455 +0100
***************
*** 5,15 ****
  " Test environment							    {{{1
  "-------------------------------------------------------------------------------
  
! com!               XpathINIT  let g:Xpath = ''
  com! -nargs=1 -bar Xpath      let g:Xpath = g:Xpath . <args>
  
  " Append a message to the "messages" file
! func! Xout(text)
      split messages
      $put =a:text
      wq
--- 5,15 ----
  " Test environment							    {{{1
  "-------------------------------------------------------------------------------
  
! com!		   XpathINIT  let g:Xpath = ''
  com! -nargs=1 -bar Xpath      let g:Xpath = g:Xpath . <args>
  
  " Append a message to the "messages" file
! func Xout(text)
      split messages
      $put =a:text
      wq
***************
*** 25,31 ****
  " in the variable argument list.  This function is useful if similar tests are
  " to be made for a ":return" from a function call or a ":finish" in a script
  " file.
! function! MakeScript(funcname, ...)
      let script = tempname()
      execute "redir! >" . script
      execute "function" a:funcname
--- 25,31 ----
  " in the variable argument list.  This function is useful if similar tests are
  " to be made for a ":return" from a function call or a ":finish" in a script
  " file.
! func MakeScript(funcname, ...)
      let script = tempname()
      execute "redir! >" . script
      execute "function" a:funcname
***************
*** 50,56 ****
      write
      bwipeout
      return script
! endfunction
  
  " ExecAsScript - Source a temporary script made from a function.	    {{{2
  "
--- 50,56 ----
      write
      bwipeout
      return script
! endfunc
  
  " ExecAsScript - Source a temporary script made from a function.	    {{{2
  "
***************
*** 301,309 ****
  "
  let calls = ""
  com! -nargs=1 CALL
!     	\ if !exists("calls") && !exists("outer") |
!     	\ let g:calls = g:calls . <args> |
!     	\ endif
  
  let i = 0
  while i < 3
--- 301,309 ----
  "
  let calls = ""
  com! -nargs=1 CALL
! 	    \ if !exists("calls") && !exists("outer") |
! 	    \ let g:calls = g:calls . <args> |
! 	    \ endif
  
  let i = 0
  while i < 3
***************
*** 357,363 ****
  if exists("*F1")
      call F1("F1")
      if exists("*G1")
!         call G1("G1")
      endif
  endif
  
--- 357,363 ----
  if exists("*F1")
      call F1("F1")
      if exists("*G1")
!        call G1("G1")
      endif
  endif
  
***************
*** 367,379 ****
  if exists("*F2")
      call F2(2, "F2")
      if exists("*G21")
!         call G21("G21")
      endif
      if exists("*G22")
!         call G22("G22")
      endif
      if exists("*G23")
!         call G23("G23")
      endif
  endif
  
--- 367,379 ----
  if exists("*F2")
      call F2(2, "F2")
      if exists("*G21")
!        call G21("G21")
      endif
      if exists("*G22")
!        call G22("G22")
      endif
      if exists("*G23")
!        call G23("G23")
      endif
  endif
  
***************
*** 383,395 ****
  if exists("*F3")
      call F3(3, "F3")
      if exists("*G31")
!         call G31("G31")
      endif
      if exists("*G32")
!         call G32("G32")
      endif
      if exists("*G33")
!         call G33("G33")
      endif
  endif
  
--- 383,395 ----
  if exists("*F3")
      call F3(3, "F3")
      if exists("*G31")
!        call G31("G31")
      endif
      if exists("*G32")
!        call G32("G32")
      endif
      if exists("*G33")
!        call G33("G33")
      endif
  endif
  
***************
*** 640,646 ****
  	endif
      endif
      return match
! endfunction
  
  if 1 || strlen("\"") | Xpath 'a'
      Xpath 'b'
--- 640,646 ----
  	endif
      endif
      return match
! endfunc
  
  if 1 || strlen("\"") | Xpath 'a'
      Xpath 'b'
***************
*** 1032,1042 ****
      call assert_true(empty(v:none))
  
      func ChangeYourMind()
!       try
! 	return v:true
!       finally
!         return 'something else'
!       endtry
      endfunc
  
      call ChangeYourMind()
--- 1032,1042 ----
      call assert_true(empty(v:none))
  
      func ChangeYourMind()
! 	try
! 	    return v:true
! 	finally
! 	    return 'something else'
! 	endtry
      endfunc
  
      call ChangeYourMind()
***************
*** 1250,1319 ****
  func Test_script_lines()
      " :append
      try
!         call DefineFunction('T_Append', [
!                     \ 'append',
!                     \ 'py <<EOS',
!                     \ '.',
!                     \ ])
      catch
!         call assert_report("Can't define function")
      endtry
      try
!         call DefineFunction('T_Append', [
!                     \ 'append',
!                     \ 'abc',
!                     \ ])
!         call assert_report("Shouldn't be able to define function")
      catch
!         call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  
      " :change
      try
!         call DefineFunction('T_Change', [
!                     \ 'change',
!                     \ 'py <<EOS',
!                     \ '.',
!                     \ ])
      catch
!         call assert_report("Can't define function")
      endtry
      try
!         call DefineFunction('T_Change', [
!                     \ 'change',
!                     \ 'abc',
!                     \ ])
!         call assert_report("Shouldn't be able to define function")
      catch
!         call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  
      " :insert
      try
!         call DefineFunction('T_Insert', [
!                     \ 'insert',
!                     \ 'py <<EOS',
!                     \ '.',
!                     \ ])
      catch
!         call assert_report("Can't define function")
      endtry
      try
!         call DefineFunction('T_Insert', [
!                     \ 'insert',
!                     \ 'abc',
!                     \ ])
!         call assert_report("Shouldn't be able to define function")
      catch
!         call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  endfunc
  
  "-------------------------------------------------------------------------------
  " Test 96:  line continuation						    {{{1
  "
! "           Undefined behavior was detected by ubsan with line continuation
! "           after an empty line.
  "-------------------------------------------------------------------------------
  func Test_script_emty_line_continuation()
  
--- 1250,1319 ----
  func Test_script_lines()
      " :append
      try
! 	call DefineFunction('T_Append', [
! 		    \ 'append',
! 		    \ 'py <<EOS',
! 		    \ '.',
! 		    \ ])
      catch
! 	call assert_report("Can't define function")
      endtry
      try
! 	call DefineFunction('T_Append', [
! 		    \ 'append',
! 		    \ 'abc',
! 		    \ ])
! 	call assert_report("Shouldn't be able to define function")
      catch
! 	call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  
      " :change
      try
! 	call DefineFunction('T_Change', [
! 		    \ 'change',
! 		    \ 'py <<EOS',
! 		    \ '.',
! 		    \ ])
      catch
! 	call assert_report("Can't define function")
      endtry
      try
! 	call DefineFunction('T_Change', [
! 		    \ 'change',
! 		    \ 'abc',
! 		    \ ])
! 	call assert_report("Shouldn't be able to define function")
      catch
! 	call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  
      " :insert
      try
! 	call DefineFunction('T_Insert', [
! 		    \ 'insert',
! 		    \ 'py <<EOS',
! 		    \ '.',
! 		    \ ])
      catch
! 	call assert_report("Can't define function")
      endtry
      try
! 	call DefineFunction('T_Insert', [
! 		    \ 'insert',
! 		    \ 'abc',
! 		    \ ])
! 	call assert_report("Shouldn't be able to define function")
      catch
! 	call assert_exception('Vim(function):E126: Missing :endfunction')
      endtry
  endfunc
  
  "-------------------------------------------------------------------------------
  " Test 96:  line continuation						    {{{1
  "
! "	    Undefined behavior was detected by ubsan with line continuation
! "	    after an empty line.
  "-------------------------------------------------------------------------------
  func Test_script_emty_line_continuation()
  
*** ../vim-8.1.0710/src/testdir/test_window_cmd.vim	2018-12-24 00:22:35.739150151 +0100
--- src/testdir/test_window_cmd.vim	2019-01-09 22:51:15.453965638 +0100
***************
*** 578,590 ****
    only
  endfunc
  
! function! Fun_RenewFile()
    sleep 2
    silent execute '!echo "1" > tmp.txt'
    sp
    wincmd p
    edit! tmp.txt
! endfunction
  
  func Test_window_prevwin()
    " Can we make this work on MS-Windows?
--- 578,590 ----
    only
  endfunc
  
! func Fun_RenewFile()
    sleep 2
    silent execute '!echo "1" > tmp.txt'
    sp
    wincmd p
    edit! tmp.txt
! endfunc
  
  func Test_window_prevwin()
    " Can we make this work on MS-Windows?
*** ../vim-8.1.0710/src/testdir/test_xxd.vim	2018-05-17 15:49:14.000000000 +0200
--- src/testdir/test_xxd.vim	2019-01-09 22:51:36.965785833 +0100
***************
*** 7,23 ****
    let s:xxd_cmd = $XXD
  endif
  
! func! PrepareBuffer(lines)
    new
    call append(0, a:lines)
    $d
  endfunc
  
! func! s:Mess(counter)
    return printf("Failed xxd test %d:", a:counter)
  endfunc
  
! func! Test_xxd()
    call PrepareBuffer(range(1,30))
    set ff=unix
    w XXDfile
--- 7,23 ----
    let s:xxd_cmd = $XXD
  endif
  
! func PrepareBuffer(lines)
    new
    call append(0, a:lines)
    $d
  endfunc
  
! func s:Mess(counter)
    return printf("Failed xxd test %d:", a:counter)
  endfunc
  
! func Test_xxd()
    call PrepareBuffer(range(1,30))
    set ff=unix
    w XXDfile
*** ../vim-8.1.0710/src/version.c	2019-01-09 22:24:46.568161097 +0100
--- src/version.c	2019-01-09 22:58:02.562605011 +0100
***************
*** 801,802 ****
--- 801,804 ----
  {   /* Add new patch number below this line */
+ /**/
+     711,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
140. You'd rather catch a score on the web than watch the game as
     it is being played on tv.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///