]> git.armaanb.net Git - lightcards.git/commitdiff
Fix inability to switch cards after using home/end
authorArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 16:19:45 +0000 (11:19 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 16:19:45 +0000 (11:19 -0500)
lightcards/display.py

index 54277d36756064184933ae2ded8a924a11744947..f31952ef206d06b46e32e21076fd34976450c7f1 100755 (executable)
@@ -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)