From: Armaan Bhojwani Date: Sun, 31 Jan 2021 16:19:45 +0000 (-0500) Subject: Fix inability to switch cards after using home/end X-Git-Tag: v0.3.0~13 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=313027851532e022f47a320df6f100a52496277a Fix inability to switch cards after using home/end --- diff --git a/lightcards/display.py b/lightcards/display.py index 54277d3..f31952e 100755 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -133,7 +133,9 @@ def get_key(stdscr, stack, headers, idx): disp_card(stdscr, stack, headers, idx) elif key in ["0", "^", "KEY_HOME"]: idx.setIdx(0) + idx.setSide(0) disp_card(stdscr, stack, headers, idx) elif key in ["$", "KEY_END"]: idx.setIdx(len(stack) - 1) + idx.setSide(0) disp_card(stdscr, stack, headers, idx)