Skip to content

Commit a461cb6

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents b4bd0d3 + 889da2f commit a461cb6

Some content is hidden

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

62 files changed

+5547
-4878
lines changed

Filelist

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ SRC_ALL = \
4949
src/gui_beval.c \
5050
src/hardcopy.c \
5151
src/hashtab.c \
52+
src/indent.c \
5253
src/json.c \
5354
src/json_test.c \
5455
src/kword_test.c \
@@ -175,6 +176,7 @@ SRC_ALL = \
175176
src/proto/gui_beval.pro \
176177
src/proto/hardcopy.pro \
177178
src/proto/hashtab.pro \
179+
src/proto/indent.pro \
178180
src/proto/json.pro \
179181
src/proto/list.pro \
180182
src/proto/main.pro \

runtime/doc/eval.txt

+5
Original file line numberDiff line numberDiff line change
@@ -5745,6 +5745,11 @@ job_info([{job}]) *job_info()*
57455745
"exit_cb" function to be called on exit
57465746
"stoponexit" |job-stoponexit|
57475747

5748+
Only in Unix:
5749+
"termsig" the signal which terminated the process
5750+
(See |job_stop()| for the values)
5751+
only valid when "status" is "dead"
5752+
57485753
Without any arguments, returns a List with all Job objects.
57495754

57505755
job_setoptions({job}, {options}) *job_setoptions()*

runtime/doc/indent.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ typing certain characters or commands in certain contexts. Note that this not
6060
only triggers C-indenting. When 'indentexpr' is not empty 'indentkeys' is
6161
used instead. The format of 'cinkeys' and 'indentkeys' is equal.
6262

63-
The default is "0{,0},0),:,0#,!^F,o,O,e" which specifies that indenting occurs
64-
as follows:
63+
The default is "0{,0},0),0],:,0#,!^F,o,O,e" which specifies that indenting
64+
occurs as follows:
6565

6666
"0{" if you type '{' as the first character in a line
6767
"0}" if you type '}' as the first character in a line
6868
"0)" if you type ')' as the first character in a line
69+
"0]" if you type ']' as the first character in a line
6970
":" if you type ':' after a label or case statement
7071
"0#" if you type '#' as the first character in a line
7172
"!^F" if you type CTRL-F (which is not inserted)

runtime/doc/options.txt

+14-6
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ A jump table for the options with a short description can be found at |Q_op|.
15771577
NOTE: This option is reset when 'compatible' is set.
15781578

15791579
*'cinkeys'* *'cink'*
1580-
'cinkeys' 'cink' string (default "0{,0},0),:,0#,!^F,o,O,e")
1580+
'cinkeys' 'cink' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
15811581
local to buffer
15821582
{not in Vi}
15831583
{not available when compiled without the |+cindent|
@@ -4730,7 +4730,7 @@ A jump table for the options with a short description can be found at |Q_op|.
47304730

47314731

47324732
*'indentkeys'* *'indk'*
4733-
'indentkeys' 'indk' string (default "0{,0},:,0#,!^F,o,O,e")
4733+
'indentkeys' 'indk' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
47344734
local to buffer
47354735
{not in Vi}
47364736
{not available when compiled without the |+cindent|
@@ -6751,14 +6751,18 @@ A jump table for the options with a short description can be found at |Q_op|.
67516751

67526752
*'scrolloff'* *'so'*
67536753
'scrolloff' 'so' number (default 0, set to 5 in |defaults.vim|)
6754-
global
6754+
global or local to window |global-local|
67556755
{not in Vi}
67566756
Minimal number of screen lines to keep above and below the cursor.
67576757
This will make some context visible around where you are working. If
67586758
you set it to a very large value (999) the cursor line will always be
67596759
in the middle of the window (except at the start or end of the file or
67606760
when long lines wrap).
6761-
For scrolling horizontally see 'sidescrolloff'.
6761+
After using the local value, go back the global value with one of
6762+
these two: >
6763+
setlocal scrolloff<
6764+
setlocal scrolloff=-1
6765+
< For scrolling horizontally see 'sidescrolloff'.
67626766
NOTE: This option is set to 0 when 'compatible' is set.
67636767

67646768
*'scrollopt'* *'sbo'*
@@ -7313,7 +7317,7 @@ A jump table for the options with a short description can be found at |Q_op|.
73137317

73147318
*'sidescrolloff'* *'siso'*
73157319
'sidescrolloff' 'siso' number (default 0)
7316-
global
7320+
global or local to window |global-local|
73177321
{not in Vi}
73187322
The minimal number of screen columns to keep to the left and to the
73197323
right of the cursor if 'nowrap' is set. Setting this option to a
@@ -7323,7 +7327,11 @@ A jump table for the options with a short description can be found at |Q_op|.
73237327
to a large value (like 999) has the effect of keeping the cursor
73247328
horizontally centered in the window, as long as one does not come too
73257329
close to the beginning of the line.
7326-
NOTE: This option is set to 0 when 'compatible' is set.
7330+
After using the local value, go back the global value with one of
7331+
these two: >
7332+
setlocal sidescrolloff<
7333+
setlocal sidescrolloff=-1
7334+
< NOTE: This option is set to 0 when 'compatible' is set.
73277335

73287336
Example: Try this together with 'sidescroll' and 'listchars' as
73297337
in the following example to never allow the cursor to move

runtime/doc/pattern.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,9 @@ x A single character, with no special meaning, matches itself
11181118
*[:tab:]* [:tab:] the <Tab> character
11191119
*[:escape:]* [:escape:] the <Esc> character
11201120
*[:backspace:]* [:backspace:] the <BS> character
1121+
*[:ident:]* [:ident:] identifier character (same as "\i")
1122+
*[:keyword:]* [:keyword:] keyword character (same as "\k")
1123+
*[:fname:]* [:fname:] file name character (same as "\f")
11211124
The brackets in character class expressions are additional to the
11221125
brackets delimiting a collection. For example, the following is a
11231126
plausible pattern for a UNIX filename: "[-./[:alnum:]_~]\+" That is,

src/Make_bc5.mak

+1
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ vimobj = \
548548
$(OBJDIR)\getchar.obj \
549549
$(OBJDIR)\hardcopy.obj \
550550
$(OBJDIR)\hashtab.obj \
551+
$(OBJDIR)\indent.obj \
551552
$(OBJDIR)\json.obj \
552553
$(OBJDIR)\list.obj \
553554
$(OBJDIR)\main.obj \

src/Make_cyg_ming.mak

+3-1
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ OBJ = \
720720
$(OUTDIR)/getchar.o \
721721
$(OUTDIR)/hardcopy.o \
722722
$(OUTDIR)/hashtab.o \
723+
$(OUTDIR)/indent.o \
723724
$(OUTDIR)/json.o \
724725
$(OUTDIR)/list.o \
725726
$(OUTDIR)/main.o \
@@ -930,7 +931,8 @@ endif
930931
ifeq (yes, $(USE_STDCPLUS))
931932
LINK = $(CXX)
932933
ifeq (yes, $(STATIC_STDCPLUS))
933-
LIB += -static-libstdc++ -static-libgcc
934+
#LIB += -static-libstdc++ -static-libgcc
935+
LIB += -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
934936
endif
935937
else
936938
LINK = $(CC)

src/Make_dice.mak

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ SRC = \
5050
getchar.c \
5151
hardcopy.c \
5252
hashtab.c \
53+
indent.c \
5354
json.c \
5455
list.c \
5556
main.c \
@@ -108,6 +109,7 @@ OBJ = o/arabic.o \
108109
o/getchar.o \
109110
o/hardcopy.o \
110111
o/hashtab.o \
112+
o/indent.o \
111113
o/json.o \
112114
o/list.o \
113115
o/main.o \
@@ -209,6 +211,8 @@ o/hardcopy.o: hardcopy.c $(SYMS)
209211

210212
o/hashtab.o: hashtab.c $(SYMS)
211213

214+
o/indent.o: indent.c $(SYMS)
215+
212216
o/json.o: json.c $(SYMS)
213217

214218
o/list.o: list.c $(SYMS)

src/Make_ivc.mak

+5
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ LINK32_OBJS= \
234234
"$(INTDIR)/getchar.obj" \
235235
"$(INTDIR)/hardcopy.obj" \
236236
"$(INTDIR)/hashtab.obj" \
237+
"$(INTDIR)/indent.obj" \
237238
"$(INTDIR)/json.obj" \
238239
"$(INTDIR)/list.obj" \
239240
"$(INTDIR)/main.obj" \
@@ -434,6 +435,10 @@ SOURCE=.\hardcopy.c
434435
SOURCE=.\hashtab.c
435436
# End Source File
436437
# Begin Source File
438+
#
439+
SOURCE=.\indent.c
440+
# End Source File
441+
# Begin Source File
437442

438443
SOURCE=.\gui.c
439444

src/Make_manx.mak

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ SRC = arabic.c \
6060
getchar.c \
6161
hardcopy.c \
6262
hashtab.c \
63+
indent.c \
6364
json.c \
6465
list.c \
6566
main.c \
@@ -120,6 +121,7 @@ OBJ = obj/arabic.o \
120121
obj/getchar.o \
121122
obj/hardcopy.o \
122123
obj/hashtab.o \
124+
obj/indent.o \
123125
obj/json.o \
124126
obj/list.o \
125127
obj/main.o \
@@ -178,6 +180,7 @@ PRO = proto/arabic.pro \
178180
proto/getchar.pro \
179181
proto/hardcopy.pro \
180182
proto/hashtab.pro \
183+
proto/indent.pro \
181184
proto/json.pro \
182185
proto/list.pro \
183186
proto/main.pro \
@@ -329,6 +332,9 @@ obj/hardcopy.o: hardcopy.c
329332
obj/hashtab.o: hashtab.c
330333
$(CCSYM) $@ hashtab.c
331334

335+
obj/indent.o: indent.c
336+
$(CCSYM) $@ indent.c
337+
332338
obj/json.o: json.c
333339
$(CCSYM) $@ json.c
334340

src/Make_morph.mak

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ SRC = arabic.c \
4848
getchar.c \
4949
hardcopy.c \
5050
hashtab.c \
51+
indent.c \
5152
json.c \
5253
list.c \
5354
main.c \

src/Make_mvc.mak

+4
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ OBJ = \
725725
$(OUTDIR)\getchar.obj \
726726
$(OUTDIR)\hardcopy.obj \
727727
$(OUTDIR)\hashtab.obj \
728+
$(OUTDIR)\indent.obj \
728729
$(OUTDIR)\json.obj \
729730
$(OUTDIR)\list.obj \
730731
$(OUTDIR)\main.obj \
@@ -1414,6 +1415,8 @@ $(OUTDIR)/hardcopy.obj: $(OUTDIR) hardcopy.c $(INCL)
14141415

14151416
$(OUTDIR)/hashtab.obj: $(OUTDIR) hashtab.c $(INCL)
14161417

1418+
$(OUTDIR)/indent.obj: $(OUTDIR) indent.c $(INCL)
1419+
14171420
$(OUTDIR)/gui.obj: $(OUTDIR) gui.c $(INCL) $(GUI_INCL)
14181421

14191422
$(OUTDIR)/gui_beval.obj: $(OUTDIR) gui_beval.c $(INCL) $(GUI_INCL)
@@ -1645,6 +1648,7 @@ proto.h: \
16451648
proto/getchar.pro \
16461649
proto/hardcopy.pro \
16471650
proto/hashtab.pro \
1651+
proto/indent.pro \
16481652
proto/json.pro \
16491653
proto/list.pro \
16501654
proto/main.pro \

src/Make_sas.mak

+5
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ SRC = \
113113
getchar.c \
114114
hardcopy.c \
115115
hashtab.c \
116+
indent.c \
116117
json.c \
117118
list.c \
118119
main.c \
@@ -172,6 +173,7 @@ OBJ = \
172173
getchar.o \
173174
hardcopy.o \
174175
hashtab.o \
176+
indent.o \
175177
json.o \
176178
list.o \
177179
main.o \
@@ -231,6 +233,7 @@ PRO = \
231233
proto/getchar.pro \
232234
proto/hardcopy.pro \
233235
proto/hashtab.pro \
236+
proto/indent.pro \
234237
proto/json.pro \
235238
proto/list.pro \
236239
proto/main.pro \
@@ -368,6 +371,8 @@ hardcopy.o: hardcopy.c
368371
proto/hardcopy.pro: hardcopy.c
369372
hashtab.o: hashtab.c
370373
proto/hashtab.pro: hashtab.c
374+
indent.o: indent.c
375+
proto/indent.pro: indent.c
371376
json.o: json.c
372377
proto/json.pro: json.c
373378
list.o: list.c

src/Make_vms.mms

+3-2
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
314314

315315
SRC = arabic.c autocmd.c beval.c blob.c blowfish.c buffer.c charset.c crypt.c crypt_zip.c dict.c diff.c digraph.c edit.c eval.c \
316316
evalfunc.c ex_cmds.c ex_cmds2.c ex_docmd.c ex_eval.c ex_getln.c if_cscope.c if_xcmdsrv.c farsi.c fileio.c fold.c \
317-
getchar.c hardcopy.c hashtab.c json.c list.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
317+
getchar.c hardcopy.c hashtab.c indent.c json.c list.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
318318
misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c sign.c \
319319
spell.c spellfile.c syntax.c tag.c term.c termlib.c textprop.c ui.c undo.c userfunc.c version.c screen.c \
320320
window.c os_unix.c os_vms.c pathdef.c \
@@ -323,7 +323,7 @@ SRC = arabic.c autocmd.c beval.c blob.c blowfish.c buffer.c charset.c crypt.c cr
323323

324324
OBJ = arabic.obj autocmd.obj beval.obj blob.obj blowfish.obj buffer.obj charset.obj crypt.obj crypt_zip.obj dict.obj diff.obj digraph.obj \
325325
edit.obj eval.obj evalfunc.obj ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj if_cscope.obj \
326-
if_xcmdsrv.obj farsi.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj json.obj list.obj main.obj mark.obj \
326+
if_xcmdsrv.obj farsi.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj indent.obj json.obj list.obj main.obj mark.obj \
327327
menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
328328
move.obj mbyte.obj normal.obj ops.obj option.obj popupmnu.obj quickfix.obj \
329329
regexp.obj search.obj sha256.obj sign.obj spell.obj spellfile.obj syntax.obj tag.obj term.obj termlib.obj textprop.obj \
@@ -596,6 +596,7 @@ if_mzsch.obj : if_mzsch.c vim.h [.auto]config.h feature.h os_unix.h \
596596
ascii.h keymap.h term.h macros.h option.h structs.h \
597597
regexp.h gui.h beval.h [.proto]gui_beval.pro ex_cmds.h proto.h \
598598
globals.h farsi.h arabic.h if_mzsch.h
599+
indent.obj : indent.c vim.h [.auto]config.h feature.h os_unix.h
599600
json.obj : json.c vim.h [.auto]config.h feature.h os_unix.h \
600601
ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h beval.h \
601602
[.proto]gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \

src/Makefile

+17-8
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,8 @@ CClink = $(CC)
472472
# Uncomment this when you want to include the Cscope interface.
473473
#CONF_OPT_CSCOPE = --enable-cscope
474474

475-
# WORKSHOP - Sun Visual Workshop interface. Only works with Motif!
476-
#CONF_OPT_WORKSHOP = --enable-workshop
477-
478475
# NETBEANS - NetBeans interface. Only works with Motif, GTK, and gnome.
479-
# Motif version must have XPM libraries (see |workshop-xpm|).
476+
# Motif version must have XPM libraries (see |netbeans-xpm|).
480477
# Uncomment this when you do not want the netbeans interface.
481478
#CONF_OPT_NETBEANS = --disable-netbeans
482479

@@ -610,6 +607,8 @@ CClink = $(CC)
610607
#CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
611608

612609
# Use this with GCC to check for mistakes, unused arguments, etc.
610+
# Note: If you use -Wextra and get warnings in GTK code about function
611+
# parameters, you can add -Wno-cast-function-type
613612
#CFLAGS = -g -Wall -Wextra -Wshadow -Wmissing-prototypes -Wunreachable-code -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
614613
# Add -Wpedantic to find // comments and other C99 constructs.
615614
# Better disable Perl and Python to avoid a lot of warnings.
@@ -1616,6 +1615,7 @@ BASIC_SRC = \
16161615
hashtab.c \
16171616
if_cscope.c \
16181617
if_xcmdsrv.c \
1618+
indent.c \
16191619
json.c \
16201620
list.c \
16211621
main.c \
@@ -1729,6 +1729,7 @@ OBJ_COMMON = \
17291729
$(HANGULIN_OBJ) \
17301730
objects/if_cscope.o \
17311731
objects/if_xcmdsrv.o \
1732+
objects/indent.o \
17321733
objects/list.o \
17331734
objects/mark.o \
17341735
objects/memline.o \
@@ -1859,6 +1860,7 @@ PRO_AUTO = \
18591860
if_python3.pro \
18601861
if_ruby.pro \
18611862
if_xcmdsrv.pro \
1863+
indent.pro \
18621864
json.pro \
18631865
list.pro \
18641866
main.pro \
@@ -3119,6 +3121,9 @@ objects/if_ruby.o: if_ruby.c
31193121
objects/if_tcl.o: if_tcl.c
31203122
$(CCC_NF) $(TCL_CFLAGS) $(ALL_CFLAGS) -o $@ if_tcl.c
31213123

3124+
objects/indent.o: indent.c
3125+
$(CCC) -o $@ indent.c
3126+
31223127
objects/json.o: json.c
31233128
$(CCC) -o $@ json.c
31243129

@@ -3439,10 +3444,10 @@ objects/arabic.o: arabic.c vim.h protodef.h auto/config.h feature.h os_unix.h \
34393444
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
34403445
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
34413446
proto.h globals.h farsi.h arabic.h
3442-
objects/autocmd.o: autocmd.c vim.h protodef.h auto/config.h feature.h \
3443-
auto/osdef.h os_unix.h os_mac.h ascii.h keymap.h term.h macros.h option.h beval.h \
3444-
structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h proto.h globals.h \
3445-
farsi.h arabic.h
3447+
objects/autocmd.o: autocmd.c vim.h protodef.h auto/config.h feature.h os_unix.h \
3448+
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
3449+
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
3450+
proto.h globals.h farsi.h arabic.h
34463451
objects/beval.o: beval.c vim.h protodef.h auto/config.h feature.h os_unix.h \
34473452
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
34483453
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
@@ -3547,6 +3552,10 @@ objects/if_xcmdsrv.o: if_xcmdsrv.c vim.h protodef.h auto/config.h feature.h \
35473552
os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
35483553
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
35493554
proto.h globals.h farsi.h arabic.h version.h
3555+
objects/indent.o: indent.c vim.h protodef.h auto/config.h feature.h os_unix.h \
3556+
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
3557+
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
3558+
proto.h globals.h farsi.h arabic.h
35503559
objects/json.o: json.c vim.h protodef.h auto/config.h feature.h os_unix.h \
35513560
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
35523561
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \

0 commit comments

Comments
 (0)