File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,12 @@ class Builtin {
204204 contents : this . formatVimDocument ( this . vimPredefinedVariableDocuments [ name ] ) ,
205205 } ;
206206 // options
207- } else if ( isSomeMatchPattern ( optionPattern , pre ) && this . vimOptionDocuments [ name . slice ( 1 ) ] ) {
207+ } else if (
208+ isSomeMatchPattern ( optionPattern , pre )
209+ && ( this . vimOptionDocuments [ name ] || this . vimOptionDocuments [ name . slice ( 1 ) ] )
210+ ) {
208211 return {
209- contents : this . formatVimDocument ( this . vimOptionDocuments [ name . slice ( 1 ) ] ) ,
212+ contents : this . formatVimDocument ( this . vimOptionDocuments [ name ] || this . vimOptionDocuments [ name . slice ( 1 ) ] ) ,
210213 } ;
211214 // builtin functions
212215 } else if ( builtinFunctionPattern . test ( next ) && this . vimBuiltFunctionDocuments [ name ] ) {
You can’t perform that action at this time.
0 commit comments