Minor code tweak to use TAB_SIZE instead of integer constant
modified: src/nms.c
This commit is contained in:
parent
e06aa4ebf5
commit
6b375c47a9
@ -84,7 +84,7 @@ char nms_exec(NmsArgs *args) {
|
|||||||
if (c == NEWLINE) {
|
if (c == NEWLINE) {
|
||||||
++y;
|
++y;
|
||||||
x = 0;
|
x = 0;
|
||||||
} else if (c == TAB && x + 4 <= termSizeCols) {
|
} else if (c == TAB && x + TAB_SIZE <= termSizeCols) {
|
||||||
x += TAB_SIZE;
|
x += TAB_SIZE;
|
||||||
} else if (isspace(c)) {
|
} else if (isspace(c)) {
|
||||||
if (++x > termSizeCols) {
|
if (++x > termSizeCols) {
|
||||||
|
Loading…
Reference in New Issue
Block a user