diff options
| -rw-r--r-- | st.c | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -440,11 +440,11 @@ tmoveto(int x, int y) { | |||
| 440 | void | 440 | void |
| 441 | twrapcursor(void) { | 441 | twrapcursor(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 | ||
| 450 | void | 450 | void |
| @@ -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 | } |
