summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/help.vim')
-rw-r--r--runtime/syntax/help.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index 6af9df7043..aa76906d7b 100644
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: Bram Moolenaar (Bram@vim.org)
-" Last Change: 2022 May 13
+" Last Change: 2022 May 15
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
@@ -215,7 +215,7 @@ hi def link helpError Error
hi def link helpTodo Todo
hi def link helpURL String
-if expand('%:p') =~ '[/\\]doc[/\\]syntax.txt'
+if has('textprop') && expand('%:p') =~ '[/\\]doc[/\\]syntax.txt'
" highlight groups with their respective color
import 'dist/vimhelp.vim'
call vimhelp.HighlightGroups()