Remove an unneeded assertion in libteken.
The cursor is only inside the scrolling region when we are in origin mode. In that case, it should use originreg instead of scrollreg. It is completely valid to place the cursor outside the scrolling region.
This commit is contained in:
parent
b523ec24b9
commit
bfe36bb462
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186687
@ -256,7 +256,6 @@ static void
|
||||
teken_subr_cursor_down(teken_t *t, unsigned int nrows)
|
||||
{
|
||||
|
||||
teken_assert(t->t_cursor.tp_row < t->t_scrollreg.ts_end);
|
||||
if (t->t_cursor.tp_row + nrows >= t->t_scrollreg.ts_end)
|
||||
t->t_cursor.tp_row = t->t_scrollreg.ts_end - 1;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user