toxinu / pyhn

Hacker news command line client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"k" shortcut doesn't work on last item(#60). "k" on first item crashes app

Slava opened this issue · comments

"Up" still works on last item. "Up" does not work on first item as expected

gui.py, line 136:
if self.listbox.focus_position + 1 in self.walker.positions():
replace
if self.listbox.focus_position - 1 in self.walker.positions():

Thanks for your issue!