Skip to content

Commit 1a344ac

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6ae2e37 + 8cf734e commit 1a344ac

44 files changed

Lines changed: 928 additions & 448 deletions

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ src/testdir/dostmp/*
8080
src/testdir/messages
8181
src/testdir/viminfo
8282
src/testdir/opt_test.vim
83+
runtime/indent/testdir/*.out
8384
src/memfile_test
8485
src/json_test
8586
src/message_test

Filelist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ SRC_DOS = \
475475
src/xxd/Make_mvc.mak \
476476
nsis/gvim.nsi \
477477
nsis/gvim_version.nsh \
478-
nsis/vimrc.ini \
479478
nsis/README.txt \
480479
nsis/lang/*.nsi \
481480
uninstal.txt \

nsis/vimrc.ini

Lines changed: 0 additions & 68 deletions
This file was deleted.

runtime/doc/eval.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2018 Dec 18
1+
*eval.txt* For Vim version 8.1. Last change: 2018 Dec 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2318,7 +2318,7 @@ prompt_setcallback({buf}, {expr}) none set prompt callback function
23182318
prompt_setinterrupt({buf}, {text}) none set prompt interrupt function
23192319
prompt_setprompt({buf}, {text}) none set prompt text
23202320
prop_add({lnum}, {col}, {props}) none add a text property
2321-
prop_clear({lnum} [, {lnum-end} [, {bufnr}]])
2321+
prop_clear({lnum} [, {lnum-end} [, {props}]])
23222322
none remove all text properties
23232323
prop_find({props} [, {direction}])
23242324
Dict search for a text property
@@ -6695,7 +6695,7 @@ prop_add({lnum}, {col}, {props})
66956695
used for a property that does not
66966696
continue in another line
66976697
"end_lnum" - line number for end of text
6698-
"end_col" - column for end of text; not used when
6698+
"end_col" - last column of the text; not used when
66996699
"length" is present
67006700
"bufnr" - buffer to add the property to; when
67016701
omitted the current buffer is used
@@ -6710,6 +6710,10 @@ prop_add({lnum}, {col}, {props})
67106710
property that spans more than one line.
67116711
When neither "length" nor "end_col" are passed the property
67126712
will apply to one character.
6713+
The property can end exactly at the last character of the
6714+
text, or just after it. In the last case, if text is appended
6715+
to the line, the text property size will increase, also when
6716+
the property type does not have "end_incl" set.
67136717

67146718
"type" will first be looked up in the buffer the property is
67156719
added to. When not found, the global property types are used.
@@ -9233,7 +9237,8 @@ test_ignore_error({expr}) *test_ignore_error()*
92339237
error with try/catch cannot be used (because it skips over
92349238
following code).
92359239
{expr} is used literally, not as a pattern.
9236-
There is currently no way to revert this.
9240+
When the {expr} is the string "RESET" then the list of ignored
9241+
errors is made empty.
92379242

92389243
test_null_channel() *test_null_channel()*
92399244
Return a Channel that is null. Only useful for testing.
@@ -11004,8 +11009,8 @@ This does NOT work: >
1100411009
The parsing works slightly different from |:echo|,
1100511010
more like |:execute|. All the expressions are first
1100611011
evaluated and concatenated before echoing anything.
11007-
The expressions must evaluate to a Number or String, a
11008-
Dictionary or List causes an error.
11012+
If expressions does not evaluate to a Number or
11013+
String, string() is used to turn it into a string.
1100911014
Uses the highlighting set by the |:echohl| command.
1101011015
Example: >
1101111016
:echomsg "It's a Zizzer Zazzer Zuzz, as you can plainly see."
@@ -11016,7 +11021,7 @@ This does NOT work: >
1101611021
message in the |message-history|. When used in a
1101711022
script or function the line number will be added.
1101811023
Spaces are placed between the arguments as with the
11019-
:echo command. When used inside a try conditional,
11024+
|:echomsg| command. When used inside a try conditional,
1102011025
the message is raised as an error exception instead
1102111026
(see |try-echoerr|).
1102211027
Example: >

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ func s:StartDebug_internal(dict)
142142
endif
143143
endfunc
144144

145+
" Use when debugger didn't start or ended.
146+
func s:CloseBuffers()
147+
exe 'bwipe! ' . s:ptybuf
148+
exe 'bwipe! ' . s:commbuf
149+
unlet! s:gdbwin
150+
endfunc
151+
145152
func s:StartDebug_term(dict)
146153
" Open a terminal window without a job, to run the debugged program in.
147154
let s:ptybuf = term_start('NONE', {
@@ -181,13 +188,11 @@ func s:StartDebug_term(dict)
181188
let cmd = [g:termdebugger, '-quiet', '-tty', pty] + gdb_args
182189
call ch_log('executing "' . join(cmd) . '"')
183190
let s:gdbbuf = term_start(cmd, {
184-
\ 'exit_cb': function('s:EndTermDebug'),
185191
\ 'term_finish': 'close',
186192
\ })
187193
if s:gdbbuf == 0
188194
echoerr 'Failed to open the gdb terminal window'
189-
exe 'bwipe! ' . s:ptybuf
190-
exe 'bwipe! ' . s:commbuf
195+
call s:CloseBuffers()
191196
return
192197
endif
193198
let s:gdbwin = win_getid(winnr())
@@ -204,15 +209,21 @@ func s:StartDebug_term(dict)
204209
" why the debugger doesn't work.
205210
let try_count = 0
206211
while 1
212+
let gdbproc = term_getjob(s:gdbbuf)
213+
if gdbproc == v:null || job_status(gdbproc) !=# 'run'
214+
echoerr string(g:termdebugger) . ' exited unexpectedly'
215+
call s:CloseBuffers()
216+
return
217+
endif
218+
207219
let response = ''
208220
for lnum in range(1,200)
209221
if term_getline(s:gdbbuf, lnum) =~ 'new-ui mi '
210222
" response can be in the same line or the next line
211223
let response = term_getline(s:gdbbuf, lnum) . term_getline(s:gdbbuf, lnum + 1)
212224
if response =~ 'Undefined command'
213225
echoerr 'Sorry, your gdb is too old, gdb 7.12 is required'
214-
exe 'bwipe! ' . s:ptybuf
215-
exe 'bwipe! ' . s:commbuf
226+
call s:CloseBuffers()
216227
return
217228
endif
218229
if response =~ 'New UI allocated'
@@ -243,6 +254,7 @@ func s:StartDebug_term(dict)
243254
" "Type <return> to continue" prompt.
244255
call s:SendCommand('set pagination off')
245256

257+
call job_setoptions(gdbproc, {'exit_cb': function('s:EndTermDebug')})
246258
call s:StartDebugCommon(a:dict)
247259
endfunc
248260

src/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,9 @@ CClink = $(CC)
323323
#CONF_ARGS3 = --with-global-runtime=/etc/vim,/usr/share/vim
324324
#CONF_ARGS4 = --with-local-dir=/usr/share
325325
#CONF_ARGS5 = --without-local-dir
326-
CONF_ARGS = $(CONF_ARGS1) $(CONF_ARGS2) $(CONF_ARGS3) $(CONF_ARGS4) $(CONF_ARGS5)
327326

328327
# Use this one if you distribute a modified version of Vim.
329-
#CONF_ARGS = --with-modified-by="John Doe"
328+
#CONF_ARGS6 = --with-modified-by="John Doe"
330329

331330
# GUI - For creating Vim with GUI (gvim) (B)
332331
# Uncomment this line when you don't want to get the GUI version, although you
@@ -1950,7 +1949,9 @@ config auto/config.mk: auto/configure config.mk.in config.h.in
19501949
$(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
19511950
$(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
19521951
$(CONF_OPT_CHANNEL) $(CONF_OPT_TERMINAL) \
1953-
$(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
1952+
$(CONF_ARGS) $(CONF_ARGS1) $(CONF_ARGS2) $(CONF_ARGS3) \
1953+
$(CONF_ARGS4) $(CONF_ARGS5) $(CONF_ARGS6) \
1954+
$(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \
19541955
$(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \
19551956
$(CONF_OPT_SYSMOUSE); \
19561957
fi

0 commit comments

Comments
 (0)