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

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



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