From 32a1be00080246133e8d13d090eb9f806785ea50 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 8 Sep 2012 15:06:10 +0200 Subject: [PATCH] Increased tab size from 4 to 8. --- sortix/textterminal.cpp | 2 +- utils/pager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sortix/textterminal.cpp b/sortix/textterminal.cpp index 8a5c3bf3..624fb0ce 100644 --- a/sortix/textterminal.cpp +++ b/sortix/textterminal.cpp @@ -155,7 +155,7 @@ void TextTerminal::Tab(TextBuffer* textbuf) Newline(textbuf); // TODO: This does not work correctly if the text buffer width is not a // multiple of four and the column is near the edge. - unsigned until = 4 - (column % 4); + unsigned until = 8 - (column % 8); textbuf->SetCharAttr(TextPos(column, line), ATTR_CHAR); while ( (until--) != 0 ) textbuf->SetChar(TextPos(column++, line), TextChar(' ', vgacolor)); diff --git a/utils/pager.cpp b/utils/pager.cpp index b06969ab..1f40c2df 100644 --- a/utils/pager.cpp +++ b/utils/pager.cpp @@ -110,7 +110,7 @@ int main(int argc, char* argv[]) if ( eol && linesleft ) { linesleft--; } printf("%c", c); charleft--; - if ( c == '\t' ) { charleft &= ~(4-1); } + if ( c == '\t' ) { charleft &= ~(8-1); } } } if ( fd != stdinfd ) { close(fd); }