Nested items that contain only Greek characters are not counted in the parent fold
Hi,
Thanks for the nice tool! I really want to use it, but I'm Greek and there is a certain issue with Greek characters. Is there a chance you could look into it?
Here is an example that demonstrates the problem:
* My list items are
* Next is not counted!
* Ελληνικά
* Next is counted because it contains english letters too
* Ελληνικά this counts
* Next is counted because it contains a number
* Ελληνικά 2
This will fold as follows:
* My list items are ------------------------------------------------------ [5] ···········
As you can see, it counts 5 items instead of 6. The reason is the second item ("Ελληνικά"), which does not count because it contains only Greek characters. If we add some latin letters or numbers (like items 4 and 6), then the item counts.
Same thing applies to sections:
# My subsections are
## Next is not counted!
## Ελληνικά
## Next is counted because it contains english letters too
## Ελληνικά this counts
## Next is counted because it contains a number
## Ελληνικά 2
The above will fold as:
# My subsections are ------------------------------------------------------ [5] ···
Thanks a lot in advance.
I think the problem has to do with this function:
" Returns a count of non-empty lines within a range
function! s:nonblank_lines(range)
return len(filter(a:range, "getline(v:val) =~# '\\w'"))
endfunction
Are non-latin characters, like Greek, filtered out? I'm not familiar with the syntax so it's hard to tell..
Ugh sorry for the insane delay. I had my notification settings misconfigured and wasn't getting email alerts for issues on my repos. Dunno if this still matters to you, but I'll look into it next week anyhow.