… | |
… | |
1567 | rxvt_term::view_start (int newval = 1) |
1567 | rxvt_term::view_start (int newval = 1) |
1568 | PROTOTYPE: $;$ |
1568 | PROTOTYPE: $;$ |
1569 | CODE: |
1569 | CODE: |
1570 | { |
1570 | { |
1571 | RETVAL = THIS->view_start; |
1571 | RETVAL = THIS->view_start; |
1572 | |
1572 | if (items > 1) |
1573 | if (newval <= 0) |
|
|
1574 | THIS->scr_changeview (max (newval, THIS->top_row)); |
1573 | THIS->scr_changeview (newval); |
1575 | } |
1574 | } |
1576 | OUTPUT: |
1575 | OUTPUT: |
1577 | RETVAL |
1576 | RETVAL |
1578 | |
1577 | |
1579 | void |
1578 | void |
… | |
… | |
1789 | // find length |
1788 | // find length |
1790 | for (wchar_t *s = wstr; *s; s++) |
1789 | for (wchar_t *s = wstr; *s; s++) |
1791 | if (*s == NOCHAR) |
1790 | if (*s == NOCHAR) |
1792 | ; |
1791 | ; |
1793 | else if (IS_COMPOSE (*s)) |
1792 | else if (IS_COMPOSE (*s)) |
1794 | dlen += rxvt_composite.expand (*s, 0); |
1793 | dlen += rxvt_composite.expand (*s); |
1795 | else |
1794 | else |
1796 | dlen++; |
1795 | dlen++; |
1797 | |
1796 | |
1798 | wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); |
1797 | wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); |
1799 | |
1798 | |