Deleted Added
full compact
26c26
< * $FreeBSD: stable/10/sys/teken/teken.c 223574 2011-06-26 18:25:10Z ed $
---
> * $FreeBSD: stable/10/sys/teken/teken.c 262861 2014-03-06 18:30:56Z jhb $
340a341,355
> static void
> teken_trim_cursor_pos(teken_t *t, const teken_pos_t *new)
> {
> const teken_pos_t *cur;
>
> cur = &t->t_winsize;
>
> if (cur->tp_row < new->tp_row || cur->tp_col < new->tp_col)
> return;
> if (t->t_cursor.tp_row >= new->tp_row)
> t->t_cursor.tp_row = new->tp_row - 1;
> if (t->t_cursor.tp_col >= new->tp_col)
> t->t_cursor.tp_col = new->tp_col - 1;
> }
>
344a360
> teken_trim_cursor_pos(t, p);
349a366,374
> teken_set_winsize_noreset(teken_t *t, const teken_pos_t *p)
> {
>
> teken_trim_cursor_pos(t, p);
> t->t_winsize = *p;
> teken_subr_do_resize(t);
> }
>
> void