Fix crash when ctrl-pgdn beyond first file

This commit is contained in:
Andy Williams 2014-11-29 20:00:45 +00:00
parent acb4384502
commit e7b72e5b8b
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ edi_mainview_item_prev()
{ {
if (it && it->view == current) if (it && it->view == current)
{ {
edi_mainview_item_select(prev); if (prev)
edi_mainview_item_select(prev);
return; return;
} }