]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Fix inability to switch cards after using home/end
[lightcards.git] / 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)