Skip to content

Commit 549abc2

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 63e4039 + eb24556 commit 549abc2

51 files changed

Lines changed: 562 additions & 166 deletions

Some content is hidden

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

.github/workflows/ci-windows.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ jobs:
127127
)
128128
goto :eof
129129
130+
- name: Copy src directory to src2
131+
shell: cmd
132+
run: |
133+
xcopy src src2\ /E > nul
134+
130135
- name: Build (MSVC)
131136
if: matrix.toolchain == 'msvc'
132137
shell: cmd
@@ -196,10 +201,6 @@ jobs:
196201
echo %COL_GREEN%vim version:%COL_RESET%
197202
.\vim --version || exit 1
198203
199-
mkdir ..\src2
200-
xcopy testdir ..\src2\testdir\ /E > nul || exit 1
201-
copy evalfunc.c ..\src2 > nul
202-
203204
echo %COL_GREEN%Start testing vim in background.%COL_RESET%
204205
start cmd /c "cd ..\src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
205206

runtime/doc/sign.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*sign.txt* For Vim version 8.2. Last change: 2019 Nov 30
1+
*sign.txt* For Vim version 8.2. Last change: 2020 Aug 31
22

33

44
VIM REFERENCE MANUAL by Gordon Prieur
@@ -85,6 +85,10 @@ When the line on which the sign is placed is deleted, the sign is moved to the
8585
next line (or the last line of the buffer, if there is no next line). When
8686
the delete is undone the sign does not move back.
8787

88+
When a sign with line highlighting and 'cursorline' highlighting are both
89+
present, if the priority is 100 or more then the sign highlighting takes
90+
precedence, otherwise the 'cursorline' highlighting.
91+
8892
==============================================================================
8993
2. Commands *sign-commands* *:sig* *:sign*
9094

runtime/filetype.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
240240
au BufNewFile,BufRead *bsd,*.bsdl setf bsdl
241241

242242
" Bazel (http://bazel.io)
243-
autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel setf bzl
243+
autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE setf bzl
244244
if has("fname_case")
245245
" There is another check for BUILD further below.
246-
autocmd BufRead,BufNewFile BUILD setf bzl
246+
autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl
247247
endif
248248

249249
" C or lpc
@@ -2042,7 +2042,7 @@ au BufNewFile,BufRead bzr_log.* setf bzr
20422042

20432043
" Bazel build file
20442044
if !has("fname_case")
2045-
au BufNewFile,BufRead BUILD setf bzl
2045+
au BufNewFile,BufRead *.BUILD,BUILD setf bzl
20462046
endif
20472047

20482048
" BIND zone

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"
33
" Author: Bram Moolenaar
44
" Copyright: Vim license applies, see ":help license"
5-
" Last Change: 2020 Jul 12
5+
" Last Change: 2020 Aug 31
66
"
77
" WORK IN PROGRESS - Only the basics work
88
" Note: On MS-Windows you need a recent version of gdb. The one included with
@@ -937,7 +937,7 @@ func s:HandleCursor(msg)
937937
endif
938938
exe lnum
939939
exe 'sign unplace ' . s:pc_id
940-
exe 'sign place ' . s:pc_id . ' line=' . lnum . ' name=debugPC file=' . fname
940+
exe 'sign place ' . s:pc_id . ' line=' . lnum . ' name=debugPC priority=110 file=' . fname
941941
setlocal signcolumn=yes
942942
endif
943943
elseif !s:stopped || fname != ''

src/Make_cyg_ming.mak

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ DEBUG=no
3838
# set to yes to create a mapfile
3939
#MAP=yes
4040

41+
# set to yes to measure code coverage
42+
COVERAGE=no
43+
4144
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
4245
OPTIMIZE=MAXSPEED
4346

@@ -700,6 +703,11 @@ CFLAGS += -O2
700703
LFLAGS += -s
701704
endif
702705

706+
ifeq ($(COVERAGE),yes)
707+
CFLAGS += --coverage
708+
LFLAGS += --coverage
709+
endif
710+
703711
LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
704712
GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o
705713
CUIOBJ = $(OUTDIR)/iscygpty.o
@@ -938,6 +946,9 @@ EXELFLAGS += -municode
938946
ifneq ($(DEBUG),yes)
939947
EXELFLAGS += -s
940948
endif
949+
ifeq ($(COVERAGE),yes)
950+
EXELFLAGS += --coverage
951+
endif
941952
DEFINES += $(DEF_GUI) -DVIMDLL
942953
OBJ += $(GUIOBJ) $(CUIOBJ)
943954
OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)

src/Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,9 @@ CClink = $(CC)
610610

611611
# Use this with GCC to check for mistakes, unused arguments, etc.
612612
# Note: If you use -Wextra and get warnings in GTK code about function
613-
# parameters, you can add -Wno-cast-function-type
613+
# parameters, you can add -Wno-cast-function-type (but not with clang)
614614
#CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -Wno-cast-function-type -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
615+
#CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
615616
# Add -Wpedantic to find // comments and other C99 constructs.
616617
# Better disable Perl and Python to avoid a lot of warnings.
617618
#CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wpedantic -Wunreachable-code -Wunused-result -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
@@ -690,15 +691,22 @@ LINT_OPTIONS = -beprxzF
690691

691692

692693
# Uncomment one of the next two lines to compile Vim with the
693-
# address sanitizer (asan) or with the undefined sanitizer. Works with gcc and
694-
# clang. May make Vim twice as slow. Errors reported on stderr.
694+
# address sanitizer (asan) or with the undefined sanitizer. Works with gcc.
695+
# May make Vim twice as slow. Errors are reported on stderr.
695696
# More at: https://code.google.com/p/address-sanitizer/
696697
# Useful environment variables:
697698
# $ export ASAN_OPTIONS="print_stacktrace=1 log_path=asan"
698699
# $ export LSAN_OPTIONS="suppressions=`pwd`/testdir/lsan-suppress.txt"
699700
# When running tests output can be found in testdir/asan.*
700701
#SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer
701702
#SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer
703+
704+
# Similarly when compiling with clang and using ubsan.
705+
# $ export UBSAN_OPTIONS="print_stacktrace=1 log_path=ubsan"
706+
# $ export LSAN_OPTIONS="suppressions=`pwd`/testdir/lsan-suppress.txt"
707+
# When running tests output can be found in testdir/ubsan.*
708+
#SANITIZER_CFLAGS = -g -O0 -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer
709+
702710
SANITIZER_LIBS = $(SANITIZER_CFLAGS)
703711

704712
# MEMORY LEAK DETECTION

src/auto/configure

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13934,15 +13934,16 @@ DIR * dir=opendir("dirname"); dirfd(dir);
1393413934
return 0;
1393513935
}
1393613936
_ACEOF
13937-
if ac_fn_c_try_compile "$LINENO"; then :
13937+
if ac_fn_c_try_link "$LINENO"; then :
1393813938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1393913939
$as_echo "yes" >&6; }; $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
1394013940

1394113941
else
1394213942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
1394313943
$as_echo "not usable" >&6; }
1394413944
fi
13945-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945+
rm -f core conftest.err conftest.$ac_objext \
13946+
conftest$ac_exeext conftest.$ac_ext
1394613947

1394713948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
1394813949
$as_echo_n "checking for flock... " >&6; }
@@ -13957,15 +13958,16 @@ flock(10, LOCK_SH);
1395713958
return 0;
1395813959
}
1395913960
_ACEOF
13960-
if ac_fn_c_try_compile "$LINENO"; then :
13961+
if ac_fn_c_try_link "$LINENO"; then :
1396113962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1396213963
$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
1396313964

1396413965
else
1396513966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
1396613967
$as_echo "not usable" >&6; }
1396713968
fi
13968-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969+
rm -f core conftest.err conftest.$ac_objext \
13970+
conftest$ac_exeext conftest.$ac_ext
1396913971

1397013972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
1397113973
$as_echo_n "checking for sysctl... " >&6; }

src/configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4143,15 +4143,15 @@ AC_TRY_LINK([#include <stdio.h>], [rename("this", "that")],
41434143

41444144
dnl check for dirfd()
41454145
AC_MSG_CHECKING(for dirfd)
4146-
AC_TRY_COMPILE(
4146+
AC_TRY_LINK(
41474147
[#include <sys/types.h>
41484148
#include <dirent.h>],
41494149
[DIR * dir=opendir("dirname"); dirfd(dir);],
41504150
AC_MSG_RESULT(yes); AC_DEFINE(HAVE_DIRFD), AC_MSG_RESULT(not usable))
41514151

41524152
dnl check for flock()
41534153
AC_MSG_CHECKING(for flock)
4154-
AC_TRY_COMPILE(
4154+
AC_TRY_LINK(
41554155
[#include <sys/file.h>],
41564156
[flock(10, LOCK_SH);],
41574157
AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FLOCK), AC_MSG_RESULT(not usable))

src/drawline.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,19 @@ win_line(
909909
if (!cul_screenline)
910910
{
911911
cul_attr = HL_ATTR(HLF_CUL);
912-
line_attr = cul_attr;
912+
# ifdef FEAT_SIGNS
913+
// Combine the 'cursorline' and sign highlighting, depending on
914+
// the sign priority.
915+
if (sign_present && sattr.sat_linehl > 0)
916+
{
917+
if (sattr.sat_priority >= 100)
918+
line_attr = hl_combine_attr(cul_attr, line_attr);
919+
else
920+
line_attr = hl_combine_attr(line_attr, cul_attr);
921+
}
922+
else
923+
# endif
924+
line_attr = cul_attr;
913925
wp->w_last_cursorline = wp->w_cursor.lnum;
914926
}
915927
else

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ skip_expr_concatenate(
395395
typval_T rettv;
396396
int res;
397397
int vim9script = in_vim9script();
398-
garray_T *gap = &evalarg->eval_ga;
398+
garray_T *gap = evalarg == NULL ? NULL : &evalarg->eval_ga;
399399
int save_flags = evalarg == NULL ? 0 : evalarg->eval_flags;
400400
int evaluate = evalarg == NULL
401401
? FALSE : (evalarg->eval_flags & EVAL_EVALUATE);

0 commit comments

Comments
 (0)