1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Revert "[textarea] Do not allow fs->vpos to be negative. Refs #126"

This reverts commit a0eb60d4bc.
This commit is contained in:
Witold Filipczyk 2021-09-02 16:25:59 +02:00
parent a0eb60d4bc
commit c30c6fa6c2

View File

@ -276,8 +276,6 @@ area_cursor(struct el_form_control *fc, struct form_state *fs, int utf8)
int_bounds(&fs->vpos, x - fc->cols + 1, x);
int_bounds(&fs->vypos, y - fc->rows + 1, y);
if (fs->vpos < 0) fs->vpos = 0;
x -= fs->vpos;
y -= fs->vypos;
@ -313,8 +311,6 @@ area_cursor(struct el_form_control *fc, struct form_state *fs)
int_bounds(&fs->vpos, x - fc->cols + 1, x);
int_bounds(&fs->vypos, y - fc->rows + 1, y);
if (fs->vpos < 0) fs->vpos = 0;
x -= fs->vpos;
y -= fs->vypos;