mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 08:18:51 -05:00
c1f742d775
If getcols() returns 0, we were getting stuck before in a loop of no return. Teach getcols() to take a default value to return if the width is unknown, and use this everywhere as appropriate. Also make a few other cleanups while diagnosing this issue, such as const-ifying some variables. Noticed-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org> |
||
---|---|---|
.. | ||
pacman | ||
util |