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

Re: file completion listing in 4.1.0-dev-2



martin.ebourne@xxxxxxxxxxxx wrote:

> Also, if I do the below, then I get the blank line in the listing as
> indicated, and the cursor is left incorrectly where the '#' is (the
> character is really an 'e' under the cursor). This works correctly in
> zsh-4.1.0-dev-1.

Oops.  It thought it needed more columns and printed two runs of
spaces instead of one.


Bye
  Sven

Index: Src/Zle/compresult.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compresult.c,v
retrieving revision 1.41
diff -u -r1.41 compresult.c
--- Src/Zle/compresult.c	2001/08/08 07:41:04	1.41
+++ Src/Zle/compresult.c	2001/10/05 12:35:37
@@ -1717,8 +1717,11 @@
                                 ws[tcol] = len;
                             }
                         }
-                        if (width < columns)
+                        if (width < columns) {
+                            if (++tcol < tcols)
+                                tcols = tcol;
                             break;
+                        }
                     }
 		}
 	    }

-- 
Sven Wischnowsky                    wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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