Skip to content

Commit ddef471

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 3dddaa4 + 04b4e1a commit ddef471

101 files changed

Lines changed: 4697 additions & 2546 deletions

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ SRC_ALL = \
8181
src/screen.c \
8282
src/search.c \
8383
src/sha256.c \
84-
src/structs.h \
84+
src/sign.c \
8585
src/spell.c \
8686
src/spell.h \
8787
src/spellfile.c \
88+
src/structs.h \
8889
src/syntax.c \
8990
src/tag.c \
9091
src/term.c \
@@ -192,6 +193,7 @@ SRC_ALL = \
192193
src/proto/screen.pro \
193194
src/proto/search.pro \
194195
src/proto/sha256.pro \
196+
src/proto/sign.pro \
195197
src/proto/spell.pro \
196198
src/proto/spellfile.pro \
197199
src/proto/syntax.pro \

runtime/autoload/RstFold.vim

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
" Author: Antony Lee <[email protected]>
22
" Description: Helper functions for reStructuredText syntax folding
3-
" Last Modified: 2018-01-07
3+
" Last Modified: 2018-12-29
44

55
function s:CacheRstFold()
6+
if !g:rst_fold_enabled
7+
return
8+
endif
9+
610
let closure = {'header_types': {}, 'max_level': 0, 'levels': {}}
711
function closure.Process(match) dict
812
let curline = getcurpos()[1]
@@ -20,12 +24,18 @@ function s:CacheRstFold()
2024
let self.levels[curline] = self.header_types[key]
2125
endfunction
2226
let save_cursor = getcurpos()
27+
let save_mark = getpos("'[")
2328
silent keeppatterns %s/\v^%(%(([=`:.'"~^_*+#-])\1+\n)?.{1,2}\n([=`:.'"~^_*+#-])\2+)|%(%(([=`:.''"~^_*+#-])\3{2,}\n)?.{3,}\n([=`:.''"~^_*+#-])\4{2,})$/\=closure.Process(submatch(0))/gn
2429
call setpos('.', save_cursor)
30+
call setpos("'[", save_mark)
2531
let b:RstFoldCache = closure.levels
2632
endfunction
2733

2834
function RstFold#GetRstFold()
35+
if !g:rst_fold_enabled
36+
return
37+
endif
38+
2939
if !has_key(b:, 'RstFoldCache')
3040
call s:CacheRstFold()
3141
endif
@@ -37,6 +47,10 @@ function RstFold#GetRstFold()
3747
endfunction
3848

3949
function RstFold#GetRstFoldText()
50+
if !g:rst_fold_enabled
51+
return
52+
endif
53+
4054
if !has_key(b:, 'RstFoldCache')
4155
call s:CacheRstFold()
4256
endif

runtime/doc/autocmd.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.1. Last change: 2018 May 03
1+
*autocmd.txt* For Vim version 8.1. Last change: 2018 Dec 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -759,13 +759,14 @@ FilterReadPre Before reading a file from a filter command.
759759
Not triggered when 'shelltemp' is off.
760760
*FilterWritePost*
761761
FilterWritePost After writing a file for a filter command or
762-
making a diff.
762+
making a diff with an external diff (see
763+
DiffUpdated for internal diff).
763764
Vim checks the pattern against the name of
764765
the current buffer as with FilterWritePre.
765766
Not triggered when 'shelltemp' is off.
766767
*FilterWritePre*
767768
FilterWritePre Before writing a file for a filter command or
768-
making a diff.
769+
making a diff with an external diff.
769770
Vim checks the pattern against the name of
770771
the current buffer, not the name of the
771772
temporary file that is the output of the

0 commit comments

Comments
 (0)