From 6b375c47a9f3e6eb3a43aef0af2667f514c5dd0a Mon Sep 17 00:00:00 2001 From: Brian Barto Date: Wed, 27 Apr 2016 11:26:18 -0400 Subject: [PATCH] Minor code tweak to use TAB_SIZE instead of integer constant modified: src/nms.c --- src/nms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nms.c b/src/nms.c index 69dd323..bdce6ae 100644 --- a/src/nms.c +++ b/src/nms.c @@ -84,7 +84,7 @@ char nms_exec(NmsArgs *args) { if (c == NEWLINE) { ++y; x = 0; - } else if (c == TAB && x + 4 <= termSizeCols) { + } else if (c == TAB && x + TAB_SIZE <= termSizeCols) { x += TAB_SIZE; } else if (isspace(c)) { if (++x > termSizeCols) {