Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Index of element after width of characters
- X-seq: zsh-workers 36987
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: [PATCH] Index of element after width of characters
- Date: Tue, 27 Oct 2015 20:41:07 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2lzjijiFG6sHSgHSs3CAi9Jq6MSL8SG6xMyfdydJJB4=; b=CVgtJNEO9UddJ5jcMf8Dah6CC/nZ79R9vwynHQGSkorPgoQSJQIH08iWOVUFyAoYZf /qOg47AMyHeL87+nL6xOs1LO7Wx70IqsI8SWJfivbgWQopouYzT9uk8dHideRkuLy/lA 4rv4CgA4GKwjazVB0Ng83IL8g1k+Kvl/UVP5GRDC80JKetVabDAUvvaDFST26tDpbGpb NddbS3gqw+tfpI28iP94k/ENfCMV21PMYESsTwGDpXLmm0Bk20+BcIosvspLWO4K9LuI MrJf5g55wJd7KSiLEan4MQh+8gZ/3AFP1y4/J9O1gnd8pcHKPxRzrDIZYk7p8sZo9xa9 lphA==
- In-reply-to: <CAKc7PVC4LFGnBJau3gWuws3bTgc+zcnEE+o-B8ZmKEEWa8Kpog@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVC4LFGnBJau3gWuws3bTgc+zcnEE+o-B8ZmKEEWa8Kpog@mail.gmail.com>
On Tue, Oct 27, 2015 at 6:18 PM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> Hello,
> I had to implement horizontal scrolling of text and noticed that Asian
> characters can have width of two. Scrolling via indexes of strings was
> giving different speeds to normal and to the wide characters.
+ if(ynum >= 0) {
put a space between "if ("
+ // Width 0 is treated immedietally – any
don't use c++ comments, avoid unicode for basic things like hyphens
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author