summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-08-27 00:05:50 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-08-27 00:05:50 +0200
commit42b2912e2151f02e181bd014ce1610f7e03a7d07 (patch)
tree736ca6c6645516c71825d85506c1101451d38281
parentadded macro to test flags, removed tmovecursor(). (diff)
downloadst-42b2912e2151f02e181bd014ce1610f7e03a7d07.tar.gz
st-42b2912e2151f02e181bd014ce1610f7e03a7d07.zip
cleaned some spaces.
-rw-r--r--st.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/st.c b/st.c
index 8b0e510..9667dbd 100644
--- a/st.c
+++ b/st.c
@@ -440,11 +440,11 @@ tmoveto(int x, int y) {
440void 440void
441twrapcursor(void) { 441twrapcursor(void) {
442 int y = term.c.y+1; 442 int y = term.c.y+1;
443 if(y > term.bot) { 443 if(y > term.bot) {
444 tmoveto(0, term.bot); 444 tmoveto(0, term.bot);
445 tscroll(); 445 tscroll();
446 } else 446 } else
447 tmoveto(0, y); 447 tmoveto(0, y);
448} 448}
449 449
450void 450void
@@ -971,10 +971,10 @@ tputc(char c) {
971 break; 971 break;
972 default: 972 default:
973 tsetchar(c); 973 tsetchar(c);
974 if(term.c.x+1 < term.col) { 974 if(term.c.x+1 < term.col) {
975 tmoveto(term.c.x+1, term.c.y); 975 tmoveto(term.c.x+1, term.c.y);
976 } else if(IS_SET(MODE_WRAP)) 976 } else if(IS_SET(MODE_WRAP))
977 twrapcursor(); 977 twrapcursor();
978 break; 978 break;
979 } 979 }
980 } 980 }