Skip to content

Commit b350d23

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents d9b71eb + 1623619 commit b350d23

221 files changed

Lines changed: 2755 additions & 1552 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Filelist

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ SRC_ALL = \
4545
src/drawline.c \
4646
src/drawscreen.c \
4747
src/edit.c \
48+
src/errors.h \
4849
src/eval.c \
4950
src/evalbuffer.c \
5051
src/evalfunc.c \
@@ -158,9 +159,7 @@ SRC_ALL = \
158159
src/testdir/gen_opt_test.vim \
159160
src/testdir/README.txt \
160161
src/testdir/Make_all.mak \
161-
src/testdir/dotest.in \
162-
src/testdir/test1.in \
163-
src/testdir/test77a.in \
162+
src/testdir/*.in \
164163
src/testdir/*.py \
165164
src/testdir/lsan-suppress.txt \
166165
src/testdir/sautest/autoload/*.vim \
@@ -179,7 +178,7 @@ SRC_ALL = \
179178
src/testdir/summarize.vim \
180179
src/testdir/term_util.vim \
181180
src/testdir/view_util.vim \
182-
- src/testdir/test1.ok \
181+
src/testdir/test[0-9]*.ok \
183182
src/testdir/test77a.ok \
184183
src/testdir/test83-tags? \
185184
src/testdir/test77a.com \

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ first:
3232

3333
# Some make programs use the last target for the $@ default; put the other
3434
# targets separately to always let $@ expand to "first" by default.
35-
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests test_libvterm unittests testclean clean distclean:
35+
all install uninstall tools config configure reconfig proto depend lint tags types test scripttests testtiny test_libvterm unittests testclean clean distclean:
3636
@if test ! -f src/auto/config.mk; then \
3737
cp src/config.mk.dist src/auto/config.mk; \
3838
fi

READMEdir/README_extra.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ src/os_amiga.* Files for the Amiga port.
1616
src/os_msdos.*
1717
src/os_dos.* Files for the MS-DOS port.
1818

19-
src/gui_mac.* Carbon GUI (not used)
20-
src/os_mac* Shared files for the different Mac ports.
19+
src/os_mac.* Files for the Mac port.
2120

2221
src/MacVim/* Files for the MacVim port.
2322

runtime/doc/testing.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ and for testing plugins.
2020
Vim can be tested after building it, usually with "make test".
2121
The tests are located in the directory "src/testdir".
2222

23+
There are two types of tests added over time:
24+
test20.in oldest, only for tiny and small builds
25+
test_something.vim new style tests
26+
2327
*new-style-testing*
2428
New tests should be added as new style tests. The test scripts are named
2529
test_<feature>.vim (replace <feature> with the feature under test). These use
2630
functions such as |assert_equal()| to keep the test commands and the expected
2731
result in one place.
32+
*old-style-testing*
33+
These tests are used only for testing Vim without the |+eval| feature.
2834

2935
Find more information in the file src/testdir/README.txt.
3036

runtime/doc/vim9.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,14 @@ The boolean operators "||" and "&&" do not change the value: >
426426
2 && 0 == 0
427427
[] && 2 == []
428428
429-
When using `..` for string concatenation the arguments are always converted to
430-
string. >
429+
When using `..` for string concatenation arguments of simple types are always
430+
converted to string. >
431431
'hello ' .. 123 == 'hello 123'
432432
'hello ' .. v:true == 'hello true'
433433
434+
Simple types are string, float, special and bool. For other types |string()|
435+
can be used.
436+
434437
In Vim9 script one can use "true" for v:true and "false" for v:false.
435438

436439

@@ -805,6 +808,9 @@ actually needed. A recommended mechanism:
805808
...
806809
< This goes in .../import/someother.vim.
807810

811+
When compiling a `:def` function and a function in an autoload script is
812+
encountered, the script is not loaded until the `:def` function is called.
813+
808814

809815
Import in legacy Vim script ~
810816

src/Make_cyg_ming.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ cmdidxs: ex_cmds.h
11071107
vim --clean -X --not-a-term -u create_cmdidxs.vim
11081108

11091109
###########################################################################
1110-
INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \
1110+
INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h errors.h globals.h \
11111111
keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
11121112
spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
11131113
GUI_INCL = gui.h

src/Make_mvc.mak

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ CFLAGS = $(CFLAGS) $(CFLAGS_DEPR)
719719
!include Make_all.mak
720720
!include testdir\Make_all.mak
721721

722-
INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \
722+
INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h errors.h globals.h \
723723
keymap.h macros.h option.h os_dos.h os_win32.h proto.h regexp.h \
724724
spell.h structs.h term.h beval.h $(NBDEBUG_INCL)
725725

@@ -1464,22 +1464,32 @@ cmdidxs: ex_cmds.h
14641464

14651465
test:
14661466
cd testdir
1467-
$(MAKE) /NOLOGO -f Make_dos.mak win32
1467+
$(MAKE) /NOLOGO -f Make_dos.mak
14681468
cd ..
14691469

14701470
testgvim:
14711471
cd testdir
1472-
$(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\gvim win32
1472+
$(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\gvim
1473+
cd ..
1474+
1475+
testtiny:
1476+
cd testdir
1477+
$(MAKE) /NOLOGO -f Make_dos.mak tiny
1478+
cd ..
1479+
1480+
testgvimtiny:
1481+
cd testdir
1482+
$(MAKE) /NOLOGO -f Make_dos.mak tiny VIMPROG=..\gvim
14731483
cd ..
14741484

14751485
testclean:
14761486
cd testdir
14771487
$(MAKE) /NOLOGO -f Make_dos.mak clean
14781488
cd ..
14791489

1480-
# Run test1 to bootstrap tests
1490+
# Run individual OLD style test.
14811491
# These do not depend on the executable, compile it when needed.
1482-
$(SCRIPTS_FIRST:.out=):
1492+
$(SCRIPTS_TINY):
14831493
cd testdir
14841494
- if exist $@.out del $@.out
14851495
$(MAKE) /NOLOGO -f Make_dos.mak VIMPROG=..\$(VIMTESTTARGET) nolog

0 commit comments

Comments
 (0)