Skip to content

Commit

Permalink
vim like syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfer0x80 authored Feb 5, 2022
1 parent 2428e19 commit 9cb7c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hackernews_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def hackernews_cli(data, top_news, handle):
if read == "quit" or read == "q":
print("[*] Gracefully quitting ...")
exit(0)
elif (read == "j" or read == "up") and handle > 0:
elif (read == "k" or read == "up") and handle > 0:
handle -= 1
elif (read == "k" or read == "down") and handle < 5:
elif (read == "j" or read == "down") and handle < 5:
handle += 1
elif read == "r" or read == "refresh" :
os.remove(top_news)
Expand Down

0 comments on commit 9cb7c21

Please sign in to comment.