Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Cannot paste unicode <0221>, <0234> - <024f>



On Fri, 28 Apr 2017 15:54:23 +0200
Sebastian Gniazdowski <psprint@xxxxxxxxxxx> wrote:
> > You might want to confirm also if it actually is wcwidth() rather than
> > iswprint() by hacking zle_refresh.c e.g. the following (untested). This
> > might be a plausible patch, actually --- if iswprint() succeeds,
> > presumably the printing width actually is positive (combining characters
> > are handled as a special case afterwards).
> 
> Tried the patch, no luck, result is the same

So most likely iswprint() is returning false for those characters for
some reason, although it could be wrong somewhere else entirely.
Doesn't look like it matches the range of metafied characters for
once --- the first character in the affected run is U+0234 which
is UTF-8 c8 b4 20 none of which is metafied.

pws



Messages sorted by: Reverse Date, Date, Thread, Author