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

Re: [PATCH] Index of element after width of characters



On Oct 28,  3:59pm, Peter Stephenson wrote:
}
} Mikael's right, actually --- this is an indexing problem and more
} consistently done with subscripts.  It should actually be simpler than
} the existing code for space-delimited words in scalars.

Doesn't subscripting already treat multi-byte characters as single
positions in strings?  The one strangeness may be characters that
have zero disply width.

So I take it that what we need is subscripting that counts display
widths rather than character widths.



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