neovim-qt, windows10
syntax: markdown
Branch: dev
Revision: 78a41b7
Date: 2020-04-03 13:31:36 -0600
original text:
ä½
ä½ å¥½
ä½ ä»¬å¥½
ä½ ä»¬å¥½å•Š
ä½ ä»¬å¥½å•Šå•Š
ä½ ä»¬å¥½å•Šaaaaa
aaaaaä½ ä»¬å¥½å•Š
press <Enter> on each word:
[ä½ ](ä½ .md)
[ä½ å¥½](ä½ å¥½.md)
[ä½ ä»¬å¥½](ä½ ä»¬å¥½.md)
[](ä½ ä»¬å¥½å•Š.md)
[](ä½ ä»¬å¥½å•Šå•Š.md)
[ä½ ä»¬å¥½å•Šaaaaa](ä½ ä»¬å¥½å•Šaaaaa.md)
[aaaaaä½ ä»¬å¥½å•Š](aaaaaä½ ä»¬å¥½å•Š.md)
As you can see, pure four or more Chinese characters have missing front part.
Fixed: d94b966c4626c6
__Short:__
let url_l = filter(url_l, 'v:val !~? "^\\A\\{4,}$"')
" Becomes
let url_l = filter(url_l, 'v:val !~? "[!\"$%&''()*+,:;<=>?\[\]\\^`{}]"')
__Long:__
Pressing <Cr> (i.e. Enter) is calling the following code):
let url_l = filter(url_l, 'v:val !~? "^\\A\\{4,}$"')But from :h /\A: \A non-alphabetic character: [^A-Za-z] */\A* So this removes MANY unicodes.
I replaced a white-list (keep only aphabetical) with a black list (remove annoying characters)
Thank you very much for the feed back. This will help many people with non-alphabetic links
PS: I close the issue to clear where dev must code. Feel free to reopen AND to make other issues (or better pull request) if you experience similar problems.
@tinmarino Thanks for your effort, looking forward to your merge.
@BSDxxxx : it is already in the dev branch.
git fetch
git checkout origin dev
Edit: it is now in the dev branch : I did not realized I pushed in my personal repo.