fixed tabs, I was doing silly things! - iomenu - interactive terminal-based selection menu
(HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 285c6733a892228c8de6a4bc0ecfaf79393b3dba
(DIR) parent c03da0d703ba0161edd18fb0af36e3891ff56b4c
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Sun, 16 Apr 2017 15:44:12 +0200
fixed tabs, I was doing silly things!
Diffstat:
M iomenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) 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++] = ' ';