diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 11:27:16 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 11:50:37 -0400 |
commit | 1ed5abfe888b364e372ac280fb2ebf971f4fce23 (patch) | |
tree | 2cb29b581c3ea9d2eae0211bcc663006c4650482 /runtime | |
parent | d551a49958230077f9bc78587636227b2518149a (diff) | |
download | rneovim-1ed5abfe888b364e372ac280fb2ebf971f4fce23.tar.gz rneovim-1ed5abfe888b364e372ac280fb2ebf971f4fce23.tar.bz2 rneovim-1ed5abfe888b364e372ac280fb2ebf971f4fce23.zip |
vim-patch:8.0.0794: checking translations fails with multiple NL
Problem: The script to check translations fails if there is more than one
NL in one line.
Solution: Count the number of NL characters. Make count() accept a string.
https://github.com/vim/vim/commit/9966b21a57277986217aa28237d6c247ebd060d7
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index dce531b663..7b5fc191e9 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2990,11 +2990,16 @@ cosh({expr}) *cosh()* count({comp}, {expr} [, {ic} [, {start}]]) *count()* Return the number of times an item with value {expr} appears - in |List| or |Dictionary| {comp}. + in |String|, |List| or |Dictionary| {comp}. + If {start} is given then start with the item with this index. {start} can only be used with a |List|. + When {ic} is given and it's |TRUE| then case is ignored. + When {comp} is a string then the number of not overlapping + occurences of {expr} is returned. + *cscope_connection()* cscope_connection([{num} , {dbpath} [, {prepend}]]) |