sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c8cf3f70f979a6eb373ec1ebdf8f80bc42dcd633
parent 2707be71994c015b873c4879e8ebb41fb511cbf3
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Sun, 24 Jan 2016 03:02:51 +0100

numlen(0) == 1

Diffstat:
Mcommon/util.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/util.c b/common/util.c @@ -8,7 +8,7 @@ int wrap(int i, int max) { int numlen(int n) { if (n == 0) { - return n; + return 1; } return log10(n) + 1; }