iomenu

interactive text selection menu
Log | Files | Refs | README | LICENSE

commit 285c6733a892228c8de6a4bc0ecfaf79393b3dba
parent c03da0d703ba0161edd18fb0af36e3891ff56b4c
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 16 Apr 2017 15:44:12 +0200

fixed tabs, I was doing silly things!

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

diff --git a/iomenu.c b/iomenu.c @@ -149,7 +149,7 @@ format(char *str, int cols) for (i = j = 0; str[i] && j < cols; i++) { if (str[i] == '\t') { - int t = (j + 7) % 8 + 1; + int t = 8 - j % 8; while (t-- > 0 && j < cols) formatted[j++] = ' ';