Minor code tweak to use TAB_SIZE instead of integer constant

modified:   src/nms.c
This commit is contained in:
Brian Barto 2016-04-27 11:26:18 -04:00
parent e06aa4ebf5
commit 6b375c47a9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {