Do not scroll on Shift-PgUp when in alternate buffer.

Test Plan: build some history, vi, Shift+PgUp -> it scrolls when it shouldn't

Reviewers: billiob

Differential Revision: https://phab.enlightenment.org/D422
This commit is contained in:
Aleksandar Popadić 2014-01-06 21:40:09 +01:00 committed by Boris Faure
parent 603b7cd239
commit cf5e838084
1 changed files with 7 additions and 4 deletions

View File

@ -2000,10 +2000,13 @@ _handle_shift(Evas_Event_Key_Down *ev, int by, Evas_Object *term, Termio *sd)
{
if (!strcmp(ev->key, "Prior"))
{
sd->scroll += by;
if (sd->scroll > sd->pty->backscroll_num)
sd->scroll = sd->pty->backscroll_num;
_smart_update_queue(term, sd);
if (!(sd->pty->altbuf))
{
sd->scroll += by;
if (sd->scroll > sd->pty->backscroll_num)
sd->scroll = sd->pty->backscroll_num;
_smart_update_queue(term, sd);
}
}
else if (!strcmp(ev->key, "Next"))
{