Ken Takata wrote:

> 2015/6/26 Fri 7:29:52 UTC+9 h_east wrote:
> > Thanks for include my patch!
> > 
> > But part of runtime/doc/eval.txt was missing.
> > The following difference does not reflect.

[...]

> How about mentioning backward compatibilites of the {skipcc} parameter?
> E.g.
> 
> strchars({expr} [, {skipcc}])                                 *strchars()*
>               The result is a Number, which is the number of characters
>               in String {expr}.
>               When {skipcc} is omitted or zero, composing characters are
>               counted separately.
>               When {skipcc} set to 1, Composing characters are ignored.
>               Also see |strlen()|, |strdisplaywidth()| and |strwidth()|. 
> 
>               {skipcc} is only available after 7.4.755.  For backward
>               compatibility, you can define a wrapper function: >
> 
>               if has("patch-7.4.755")
>                   function s:strchars(str, skipcc)
>                       return strchars(a:str, a:skipcc)
>                   endfunction
>               else
>                   function s:strchars(str, skipcc)
>                       if a:skipcc
>                           return strlen(substitute(a:str, ".", "x", "g"))
>                       else
>                           return strchars(a:str)
>                       endif
>                   endfunction
>               endif
> <

It's a bit much, but I suppose it's useful.

-- 
hundred-and-one symptoms of being an internet addict:
157. You fum through a magazine, you first check to see if it has a web
     address.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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