Skip to content

Commit 324a552

Browse files
committed
Merge branch 'vim'
Conflicts: src/auto/configure
2 parents 6fc791c + 8e79fe2 commit 324a552

File tree

17 files changed

+211
-48
lines changed

17 files changed

+211
-48
lines changed

.hgtags

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,3 +2551,12 @@ afb00cc8caacb8969705ffae0316bb9c01156e7f v7-3-1209
25512551
81e623ff2e554695c372b7b06bd826c6298bb8b5 v7-3-1212
25522552
ae05437a744a3b6f87d6f3304a19e5256849bb1c v7-3-1213
25532553
bcb84438bb5bf27101b25ffb2c2267ab6ff0e946 v7-3-1214
2554+
8bbd0ff486b3cfa711e0a7f305b4a0241bd5dd52 v7-3-1215
2555+
b89aa3374b7fe64968421f4e20cf22cd3e95713b v7-3-1216
2556+
613651492c1905f62cbbcbfc616d7935234badab v7-3-1217
2557+
d10ede931224a9818a98a58bd9382f77728ced1b v7-3-1218
2558+
eb5c3508cd7da14f8d3337ca4dfabe4122ded20c v7-3-1219
2559+
ba7db05e1482457a36b19ed608f820275fafb9f7 v7-3-1220
2560+
9f7b92f232d31450fd04ecec3e89b027c0f28b02 v7-3-1221
2561+
07831d280e90a87ab9f42a9c96775ef2bc0cdedf v7-3-1222
2562+
5cd32322154c1c5970194eb5300eec2ddb8ccc30 v7-3-1223

src/Makefile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,11 @@ tools: $(TOOLS)
16711671
# sure configure is run when it's needed.
16721672
#
16731673
config auto/config.mk: auto/configure config.mk.in config.h.in
1674+
if test -f auto/config.cache && \
1675+
grep '^ac_cv_env_CFLAGS_value=' auto/config.cache > /dev/null && \
1676+
! grep -x -F 'ac_cv_env_CFLAGS_value=$(CFLAGS)' auto/config.cache > /dev/null; then \
1677+
rm auto/config.cache; \
1678+
fi
16741679
GUI_INC_LOC="$(GUI_INC_LOC)" GUI_LIB_LOC="$(GUI_LIB_LOC)" \
16751680
CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \
16761681
LDFLAGS="$(LDFLAGS)" $(CONF_SHELL) srcdir="$(srcdir)" \
@@ -1878,16 +1883,16 @@ unittest unittests: $(UNITTEST_TARGETS)
18781883
done
18791884

18801885
# Run individual test, assuming that Vim was already compiled.
1881-
test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 \
1882-
test11 test12 test13 test14 test15 test16 test17 test18 test19 \
1883-
test21 test22 test23 test24 test25 test26 test27 test28 test29 \
1884-
test31 test32 test33 test34 test35 test36 test37 test38 test39 \
1885-
test41 test42 test43 test44 test45 test46 test47 test48 test49 \
1886-
test51 test52 test53 test54 test55 test56 test57 test58 test59 \
1887-
test61 test62 test63 test64 test65 test66 test67 test68 test69 \
1888-
test71 test72 test73 test74 test75 test76 test77 test78 test79 \
1889-
test81 test82 test83 test84 test85 test86 test87 test88 test89 \
1890-
test91 test92 test93 test94 test95 test96 test97 test98 test99:
1886+
test1 test2 test3 test4 test5 test6 test7 test8 test9 \
1887+
test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
1888+
test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
1889+
test30 test31 test32 test33 test34 test35 test36 test37 test38 test39 \
1890+
test40 test41 test42 test43 test44 test45 test46 test47 test48 test49 \
1891+
test50 test51 test52 test53 test54 test55 test56 test57 test58 test59 \
1892+
test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
1893+
test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
1894+
test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
1895+
test90 test91 test92 test93 test94 test95 test96 test97 test98 test99:
18911896
cd testdir; rm [email protected]; $(MAKE) -f Makefile [email protected] VIMPROG=../$(VIMTARGET)
18921897

18931898
testclean:

src/auto/configure

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,6 +5252,7 @@ echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >
52525252
ldflags_save=$LDFLAGS
52535253
CFLAGS="$CFLAGS $perlcppflags"
52545254
LIBS="$LIBS $perllibs"
5255+
perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
52555256
LDFLAGS="$perlldflags $LDFLAGS"
52565257
cat >conftest.$ac_ext <<_ACEOF
52575258
/* confdefs.h. */
@@ -5306,7 +5307,9 @@ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53065307
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
53075308
fi
53085309
if test "X$perlldflags" != "X"; then
5309-
LDFLAGS="$perlldflags $LDFLAGS"
5310+
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
5311+
LDFLAGS="$perlldflags $LDFLAGS"
5312+
fi
53105313
fi
53115314
PERL_LIBS=$perllibs
53125315
PERL_SRC="auto/if_perl.c if_perlsfio.c"
@@ -6784,7 +6787,9 @@ echo "${ECHO_T}$rubyhdrdir" >&6; }
67846787
if test "X$rubyldflags" != "X"; then
67856788
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
67866789
if test "X$rubyldflags" != "X"; then
6787-
LDFLAGS="$rubyldflags $LDFLAGS"
6790+
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
6791+
LDFLAGS="$rubyldflags $LDFLAGS"
6792+
fi
67886793
fi
67896794
fi
67906795
if test "X$rubyldflags" != "X"; then
@@ -9646,9 +9651,9 @@ echo "${ECHO_T}no" >&6; }
96469651

96479652
GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
96489653

9649-
{ echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9654+
{ echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
96509655
echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9651-
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9656+
gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
96529657
GUI_LIB_LOC=
96539658
for try in $gui_libs; do
96549659
for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
@@ -9658,7 +9663,9 @@ echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
96589663
done
96599664
done
96609665
if test -n "$GUI_LIB_LOC"; then
9661-
if test "$GUI_LIB_LOC" = /usr/lib; then
9666+
if test "$GUI_LIB_LOC" = /usr/lib \
9667+
-o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
9668+
-o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
96629669
GUI_LIB_LOC=
96639670
{ echo "$as_me:$LINENO: result: in default path" >&5
96649671
echo "${ECHO_T}in default path" >&6; }
@@ -19673,7 +19680,7 @@ echo "${ECHO_T}no" >&6; }
1967319680
{ echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
1967419681
echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
1967519682
if test "$gccmajor" -gt "3"; then
19676-
CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
19683+
CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
1967719684
{ echo "$as_me:$LINENO: result: yes" >&5
1967819685
echo "${ECHO_T}yes" >&6; }
1967919686
else
@@ -19688,7 +19695,7 @@ echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
1968819695
LINK_AS_NEEDED=
1968919696
# Check if linker supports --as-needed and --no-as-needed options
1969019697
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
19691-
LDFLAGS="$LDFLAGS -Wl,--as-needed"
19698+
LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
1969219699
LINK_AS_NEEDED=yes
1969319700
fi
1969419701
if test "$LINK_AS_NEEDED" = yes; then

src/configure.in

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
800800
ldflags_save=$LDFLAGS
801801
CFLAGS="$CFLAGS $perlcppflags"
802802
LIBS="$LIBS $perllibs"
803+
perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'`
803804
LDFLAGS="$perlldflags $LDFLAGS"
804805
AC_TRY_LINK(,[ ],
805806
AC_MSG_RESULT(yes); perl_ok=yes,
@@ -813,7 +814,9 @@ if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then
813814
PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[[^ ]]*//'`
814815
fi
815816
if test "X$perlldflags" != "X"; then
816-
LDFLAGS="$perlldflags $LDFLAGS"
817+
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$perlldflags\"`" = "X"; then
818+
LDFLAGS="$perlldflags $LDFLAGS"
819+
fi
817820
fi
818821
PERL_LIBS=$perllibs
819822
PERL_SRC="auto/if_perl.c if_perlsfio.c"
@@ -1582,7 +1585,9 @@ if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
15821585
dnl configure, so strip these flags first (if present)
15831586
rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'`
15841587
if test "X$rubyldflags" != "X"; then
1585-
LDFLAGS="$rubyldflags $LDFLAGS"
1588+
if test "X`echo \"$LDFLAGS\" | grep -F -e \"$rubyldflags\"`" = "X"; then
1589+
LDFLAGS="$rubyldflags $LDFLAGS"
1590+
fi
15861591
fi
15871592
fi
15881593
if test "X$rubyldflags" != "X"; then
@@ -2338,8 +2343,10 @@ if test -z "$SKIP_MOTIF"; then
23382343
dnl Remove "-L" from before $GUI_LIB_LOC if it's there
23392344
GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
23402345

2346+
dnl Ubuntu has libXm.so in /usr/lib/i386-linux-gnu and elsewhere. The
2347+
dnl linker will figure out which one to use, we only check if one exists.
23412348
AC_MSG_CHECKING(for location of Motif GUI libs)
2342-
gui_libs="`echo $x_libraries|sed 's%/[^/][^/]*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
2349+
gui_libs="`echo $x_libraries|sed 's%/[^/][^/]*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
23432350
GUI_LIB_LOC=
23442351
for try in $gui_libs; do
23452352
for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
@@ -2350,7 +2357,9 @@ if test -z "$SKIP_MOTIF"; then
23502357
done
23512358
if test -n "$GUI_LIB_LOC"; then
23522359
dnl Remove /usr/lib, it causes trouble on some systems
2353-
if test "$GUI_LIB_LOC" = /usr/lib; then
2360+
if test "$GUI_LIB_LOC" = /usr/lib \
2361+
-o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \
2362+
-o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then
23542363
GUI_LIB_LOC=
23552364
AC_MSG_RESULT(in default path)
23562365
else
@@ -3784,7 +3793,7 @@ if test "$GCC" = yes; then
37843793
dnl And undefine it first to avoid a warning.
37853794
AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
37863795
if test "$gccmajor" -gt "3"; then
3787-
CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
3796+
CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/ *-D_FORTIFY_SOURCE=.//g' -e 's/ *-U_FORTIFY_SOURCE//g' -e 's/$/ -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1/'`
37883797
AC_MSG_RESULT(yes)
37893798
else
37903799
AC_MSG_RESULT(no)
@@ -3799,7 +3808,7 @@ AC_MSG_CHECKING(linker --as-needed support)
37993808
LINK_AS_NEEDED=
38003809
# Check if linker supports --as-needed and --no-as-needed options
38013810
if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then
3802-
LDFLAGS="$LDFLAGS -Wl,--as-needed"
3811+
LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'`
38033812
LINK_AS_NEEDED=yes
38043813
fi
38053814
if test "$LINK_AS_NEEDED" = yes; then

src/gui.c

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,14 @@ gui_init_check()
410410
gui.fontset = NOFONTSET;
411411
# endif
412412
#endif
413+
#ifdef FEAT_MBYTE
414+
gui.wide_font = NOFONT;
415+
# ifndef FEAT_GUI_GTK
416+
gui.wide_bold_font = NOFONT;
417+
gui.wide_ital_font = NOFONT;
418+
gui.wide_boldital_font = NOFONT;
419+
# endif
420+
#endif
413421

414422
#ifdef FEAT_MENU
415423
# ifndef FEAT_GUI_GTK
@@ -1027,6 +1035,11 @@ gui_get_wide_font()
10271035
gui.wide_font = font;
10281036
# ifdef FEAT_GUI_MSWIN
10291037
gui_mch_wide_font_changed();
1038+
# else
1039+
/*
1040+
* TODO: setup wide_bold_font, wide_ital_font and wide_boldital_font to
1041+
* support those fonts for 'guifontwide'.
1042+
*/
10301043
# endif
10311044
return OK;
10321045
}
@@ -2197,6 +2210,9 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
21972210
guicolor_T sp_color;
21982211
#if !defined(MSWIN16_FASTTEXT) && !defined(FEAT_GUI_GTK)
21992212
GuiFont font = NOFONT;
2213+
# ifdef FEAT_MBYTE
2214+
GuiFont wide_font = NOFONT;
2215+
# endif
22002216
# ifdef FEAT_XFONTSET
22012217
GuiFontset fontset = NOFONTSET;
22022218
# endif
@@ -2286,6 +2302,23 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
22862302
}
22872303
else
22882304
font = gui.norm_font;
2305+
2306+
# ifdef FEAT_MBYTE
2307+
/*
2308+
* Choose correct wide_font by font. wide_font should be set with font
2309+
* at same time in above block. But it will make many "ifdef" nasty
2310+
* blocks. So we do it here.
2311+
*/
2312+
if (font == gui.boldital_font && gui.wide_boldital_font)
2313+
wide_font = gui.wide_boldital_font;
2314+
else if (font == gui.bold_font && gui.wide_bold_font)
2315+
wide_font = gui.wide_bold_font;
2316+
else if (font == gui.ital_font && gui.wide_ital_font)
2317+
wide_font = gui.wide_ital_font;
2318+
else if (font == gui.norm_font && gui.wide_font)
2319+
wide_font = gui.wide_font;
2320+
# endif
2321+
22892322
}
22902323
# ifdef FEAT_XFONTSET
22912324
if (fontset != NOFONTSET)
@@ -2435,7 +2468,7 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
24352468
# ifdef FEAT_XFONTSET
24362469
&& fontset == NOFONTSET
24372470
# endif
2438-
&& gui.wide_font != NOFONT)
2471+
&& wide_font != NOFONT)
24392472
curr_wide = TRUE;
24402473
else
24412474
curr_wide = FALSE;
@@ -2470,7 +2503,7 @@ gui_outstr_nowrap(s, len, flags, fg, bg, back)
24702503
if (thislen > 0)
24712504
{
24722505
if (prev_wide)
2473-
gui_mch_set_font(gui.wide_font);
2506+
gui_mch_set_font(wide_font);
24742507
gui_mch_draw_string(gui.row, scol, s + start, thislen,
24752508
# ifdef FEAT_GUI_MACVIM
24762509
cells,

src/gui.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,12 @@ typedef struct Gui
319319
# endif
320320
#endif
321321
#ifdef FEAT_MBYTE
322-
GuiFont wide_font; /* 'guifontwide' font */
322+
GuiFont wide_font; /* Normal 'guifontwide' font */
323+
# ifndef FEAT_GUI_GTK
324+
GuiFont wide_bold_font; /* Bold 'guifontwide' font */
325+
GuiFont wide_ital_font; /* Italic 'guifontwide' font */
326+
GuiFont wide_boldital_font; /* Bold-Italic 'guifontwide' font */
327+
# endif
323328
#endif
324329
#ifdef FEAT_XFONTSET
325330
GuiFontset fontset; /* set of fonts for multi-byte chars */

src/gui_w48.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,9 +3123,43 @@ update_im_font()
31233123
void
31243124
gui_mch_wide_font_changed()
31253125
{
3126+
# ifndef MSWIN16_FASTTEXT
3127+
LOGFONT lf;
3128+
# endif
3129+
31263130
# ifdef FEAT_MBYTE_IME
31273131
update_im_font();
31283132
# endif
3133+
3134+
# ifndef MSWIN16_FASTTEXT
3135+
gui_mch_free_font(gui.wide_ital_font);
3136+
gui.wide_ital_font = NOFONT;
3137+
gui_mch_free_font(gui.wide_bold_font);
3138+
gui.wide_bold_font = NOFONT;
3139+
gui_mch_free_font(gui.wide_boldital_font);
3140+
gui.wide_boldital_font = NOFONT;
3141+
3142+
if (gui.wide_font
3143+
&& GetObject((HFONT)gui.wide_font, sizeof(lf), &lf))
3144+
{
3145+
if (!lf.lfItalic)
3146+
{
3147+
lf.lfItalic = TRUE;
3148+
gui.wide_ital_font = get_font_handle(&lf);
3149+
lf.lfItalic = FALSE;
3150+
}
3151+
if (lf.lfWeight < FW_BOLD)
3152+
{
3153+
lf.lfWeight = FW_BOLD;
3154+
gui.wide_bold_font = get_font_handle(&lf);
3155+
if (!lf.lfItalic)
3156+
{
3157+
lf.lfItalic = TRUE;
3158+
gui.wide_boldital_font = get_font_handle(&lf);
3159+
}
3160+
}
3161+
}
3162+
# endif
31293163
}
31303164
#endif
31313165

src/misc1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
static char_u *vim_version_dir __ARGS((char_u *vimdir));
1818
static char_u *remove_tail __ARGS((char_u *p, char_u *pend, char_u *name));
19+
#if defined(FEAT_CMDL_COMPL)
1920
static void init_users __ARGS((void));
21+
#endif
2022
static int copy_indent __ARGS((int size, char_u *src));
2123

2224
/* All user names (for ~user completion as done by shell). */

src/regexp_nfa.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,13 +1150,16 @@ nfa_regatom()
11501150
int n;
11511151

11521152
/* \%[abc] */
1153-
for (n = 0; (c = getchr()) != ']'; ++n)
1153+
for (n = 0; (c = peekchr()) != ']'; ++n)
11541154
{
11551155
if (c == NUL)
11561156
EMSG2_RET_FAIL(_(e_missing_sb),
11571157
reg_magic == MAGIC_ALL);
1158-
EMIT(c);
1158+
/* recursive call! */
1159+
if (nfa_regatom() == FAIL)
1160+
return FAIL;
11591161
}
1162+
getchr(); /* get the ] */
11601163
if (n == 0)
11611164
EMSG2_RET_FAIL(_(e_empty_sb),
11621165
reg_magic == MAGIC_ALL);

src/testdir/Make_dos.mak

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,30 @@ report:
6161

6262
clean:
6363
-del *.out
64+
-del *.failed
6465
-if exist test.ok del test.ok
6566
-if exist small.vim del small.vim
6667
-if exist tiny.vim del tiny.vim
6768
-if exist mbyte.vim del mbyte.vim
6869
-if exist mzscheme.vim del mzscheme.vim
6970
-if exist lua.vim del lua.vim
7071
-del X*
72+
-if exist Xdir1 rd /s /q Xdir1
73+
-if exist Xfind rd /s /q Xfind
7174
-if exist viminfo del viminfo
7275
-del test.log
7376

7477
.in.out:
78+
-if exist $*.failed del $*.failed
7579
copy $*.ok test.ok
7680
$(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $*.in
77-
@diff test.out $*.ok & if errorlevel 1 (echo $* FAILED >> test.log ) \
78-
else ( del /F $*.out & rename test.out $*.out )
81+
@diff test.out $*.ok & if errorlevel 1 \
82+
( move /y test.out $*.failed & echo $* FAILED >> test.log ) \
83+
else ( move /y test.out $*.out )
7984
-del X*
80-
-del X*.*
8185
-del test.ok
82-
-rd /s /q Xfind
86+
-if exist Xdir1 rd /s /q Xdir1
87+
-if exist Xfind rd /s /q Xfind
8388
-if exist viminfo del viminfo
8489

8590
nolog:

0 commit comments

Comments
 (0)