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

Re: Bug? in complist when filenames are longer than the screen



On Oct 3,  4:45pm, DervishD wrote:
}
}     $ touch a b c filename1 filename2 d e
}     $ zmodload zsh/complist
}     $ COLUMNS=3

I didn't look at this all that closely before, but it's not at all
surprising that the display gets messed up when COLUMNS is not the
same as the actual width of the window.  The complist module relies
on the terminal emulator to have wrapped long lines, etc., when they
were output; it does not insert its own line breaks at an imaginary
window boundary.  (ZLE sometimes appears to do so, but it has a lot
of extra smarts regarding terminals that don't auto-scroll, very few
of which smarts were ever incorporated into complist.)

Are you sure you don't mean MENUSELECT=3 in that example?  If you
have never set MENUSELECT, then loading the zsh/complist module is
not going to have any effect, and in this next step ...

}     $ ls <TAB><TAB><TAB><TAB><UP><DOWN>

... the up/down are going to scroll through the history, not through
the completions.  If you're getting a reproducible crash exactly as
described above, then it's not completion that's crashing, and we
need to be looking elsewhere.



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