Lines Matching defs:nr_up
74 int nr_up; /* # lines up in history. */
199 str = (tp->nr_up != 0) ? "History" : "Running";
248 int line, nr_up;
257 nr_up = tp->nr_up;
259 if (nr_up > 0) {
260 nr_up--;
294 if (tp->nr_up != 0 &&
295 tp->nr_up + tp->view.rows - 2 >= tp->nr_lines) {
296 tp->nr_up = tp->nr_lines - tp->view.rows + 2;
319 if (tp->nr_up != 0)
320 tp->nr_up++;
334 tp->nr_up = 0;
518 int nr_up;
521 nr_up = tp->nr_up - tp->view.rows + 2;
522 if (nr_up < 0)
523 nr_up = 0;
524 if (nr_up != tp->nr_up) {
525 tp->nr_up = nr_up;
540 int nr_up;
543 nr_up = tp->nr_up + tp->view.rows - 2;
544 if (nr_up + tp->view.rows - 2 > tp->nr_lines)
545 nr_up = tp->nr_lines - tp->view.rows + 2;
546 if (nr_up != tp->nr_up) {
547 tp->nr_up = nr_up;
581 if (tp->nr_up > 0) {
582 tp->nr_up = 0;
1202 if (tp->nr_up + line_nr < tp->view.rows - 2) {