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:
parent
603b7cd239
commit
cf5e838084
|
@ -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"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue