await reloading

This commit is contained in:
Felix Pankratz 2023-08-31 17:56:28 +02:00
parent 58b6492b4d
commit d8c2d6c8f7

2
hn.py
View File

@ -118,7 +118,7 @@ class Client:
webbrowser.open(story.link)
story.read = True
elif c == ord('r'):
self.reload()
await self.reload()
elif c == curses.KEY_RESIZE:
curses.resize_term(*self.screen.getmaxyx())
self.lines, self.cols = self.screen.getmaxyx()