Hi,

2016-1-31(Sun) 13:25:00 UTC+9 Wang Shidong:
> it is in 
> 
> https://github.com/artur-shaik/vim-javacomplete2/blob/f7a0a6e175011be95500452ba7a4cc510fd940dd/autoload/javacomplete.vim#L200-L202
> 
> 
> if has("patch-7.3.867")
>     autocmd TextChangedI *.java,*.jsp call s:HandleTextChangedI()
> endif
> 
> 
> @artur-shaik should I change to 
> 
> 
> if v:version > 704 || v:version == 703 && has('patch867')
>   autocmd TextChangedI *.java,*.jsp call s:HandleTextChangedI()
> endif

In this case, it is better to use the `exists("##TextChangedI")`.

On Vim 7.3.866
:echo exists("##TextChangedI")
0

On Vim 7.3.867
:echo exists("##TextChangedI")
1

On Vim 7.4.1219
:echo exists("##TextChangedI")
1

--
Best regards,
Hirohito Higashi (a.k.a h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui