From 313027851532e022f47a320df6f100a52496277a Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 31 Jan 2021 11:19:45 -0500 Subject: [PATCH] Fix inability to switch cards after using home/end --- lightcards/display.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2