summary refs log tree commit diff
path: root/.bin/xx.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-09-12 16:02:41 -0400
committerJune McEnroe <june@causal.agency>2016-09-12 16:02:41 -0400
commit3ed4f682adecde06710ae0bdad522c44faf751e6 (patch)
tree965ea605fdb676d10640dc952d56ccd19344f2d0 /.bin/xx.c
parentAdd -s flag to xx (diff)
downloadsrc-3ed4f682adecde06710ae0bdad522c44faf751e6.tar.gz
src-3ed4f682adecde06710ae0bdad522c44faf751e6.zip
Fix ascii alignment in xx
Diffstat (limited to '')
-rwxr-xr-x.bin/xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/.bin/xx.c b/.bin/xx.c
index 30bf1708..b81f0d79 100755
--- a/.bin/xx.c
+++ b/.bin/xx.c
@@ -74,9 +74,8 @@ int main(int argc, char **argv)
         }
 
         if (flags & ASCII) {
-            // TODO: Fix alignment with group.
             for (i = n; i < cols; ++i)
-                printf("   ");
+                printf((group && !(i % group)) ? "    " : "   ");
             printf(" ");
             for (i = 0; i < n; ++i)
                 printf("%c", isprint(buf[i]) ? buf[i] : '.');
b61298dc6a05be2d2a34d&follow=1'>Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe