Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/teken/teken.c 259016 2013-12-05 22:38:53Z ray $
---
> * $FreeBSD: head/sys/teken/teken.c 261547 2014-02-06 11:38:39Z ray $
340a341,355
> static void
> taken_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
> taken_trim_cursor_pos(t, p);
352a369
> taken_trim_cursor_pos(t, p);