fix(doc): don't use method call syntax in examples

The method call syntax patches aren't ported yet.
This commit is contained in:
Sean Dewar
2021-06-18 09:47:01 +01:00
parent 7da86f55a7
commit bb35ed6aaa
2 changed files with 2 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ the current window, try this custom `:HelpCurwin` command:
execute mods .. ' helpclose'
let s:did_open_help = v:true
endif
if !getcompletion(a:subject, 'help')->empty()
if !empty(getcompletion(a:subject, 'help'))
execute mods .. ' edit ' .. &helpfile
endif
return 'help ' .. a:subject