diff options
Diffstat (limited to 'syntax/go.vim')
-rw-r--r-- | syntax/go.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/go.vim b/syntax/go.vim index fef0e689..93d6fbc4 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -401,7 +401,7 @@ function! s:hi() " filetype plugin on, the highlight groups won't be defined when " ftplugin/go.vim is executed when the first go file is opened. " See https://github.com/fatih/vim-go/issues/2658. - if exists('*prop_type_add') + if has('textprop') if empty(prop_type_get('goSameId')) call prop_type_add('goSameId', {'highlight': 'goSameId'}) endif |