On Tue, Feb 02, 2016 at 05:49:13AM -0800, Axel Bender wrote:
> Using <c-x><c-o> after "<u" in a HTML file incorrectly suggests uppercase 
> completions ("UL" and "BLOCKQUOTE" in my case) instead of the appropriate 
> lowercase completions. There are no uppercase tags in the document 
> (htmlcomplete.vim of 20.06.2014).
> 
> diff --git i/runtime/autoload/htmlcomplete.vim 
> w/runtime/autoload/htmlcomplete.vim
> index 984ba8b..d89db7a 100644
> --- i/runtime/autoload/htmlcomplete.vim
> +++ w/runtime/autoload/htmlcomplete.vim
> @@ -251,7 +251,7 @@ function! htmlcomplete#CompleteTags(findstart, base)
>                 let tag = split(context)[0]
>                 " Detect if tag is uppercase to return in proper case,
>                 " we need to make it lowercase for processing
> -               if tag =~ '^[A-Z]*$'
> +               if tag =~# '^[A-Z]*$'
>                         let uppercase_tag = 1
>                         let tag = tolower(tag)
>                 else

What is your locale?

I think a better patch would be to use

                  if tag =~ '^[[:upper:]]*$'

Marius Gedminas
-- 
A "critic" is a man who creates nothing and thereby feels qualified to judge
the work of creative men. There is logic in this; he is unbiased -- he hates
all creative people equally.

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui