Lines Matching refs:amount
91 teken_subr_do_scroll(const teken_t *t, int amount)
98 teken_assert(amount != 0);
101 if (amount > 0) {
105 if (t->t_scrollreg.ts_begin + amount < t->t_scrollreg.ts_end) {
106 tr.tr_begin.tp_row = t->t_scrollreg.ts_begin + amount;
114 tr.tr_begin.tp_row = t->t_scrollreg.ts_end - amount;
126 amount = -amount;
129 if (t->t_scrollreg.ts_begin + amount < t->t_scrollreg.ts_end) {
132 tr.tr_end.tp_row = t->t_scrollreg.ts_end - amount;
134 tp.tp_row = t->t_scrollreg.ts_begin + amount;
138 tr.tr_end.tp_row = t->t_scrollreg.ts_begin + amount;