]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/display.py
Fix length of separator line
[lightcards.git] / lightcards / display.py
index 6b5fce11abe2e8cecd15960afb695733af555b1e..e9e5b267a37299262d63327ad429ad839bc72ae3 100755 (executable)
@@ -95,8 +95,8 @@ def disp_card(stdscr, stack, headers, obj):
                                        placeholder="…"), curses.A_BOLD)
 
         # Add horizontal line
-        lin_width = mcols
-        if len(top) < mcols:
+        lin_width = header_width
+        if len(top) < header_width:
             lin_width = len(top)
         stdscr.hline(1, 0, curses.ACS_HLINE, lin_width)
 
@@ -104,7 +104,6 @@ def disp_card(stdscr, stack, headers, obj):
         wrap_width = mcols
         if mcols > 80:
             wrap_width = 80
-        stdscr.hline(curses.ACS_HLINE, lin_width)
         stdscr.addstr(2, 0, textwrap.fill(stack[obj.getIdx()][obj.getSide()],
                                           width=wrap_width))
     disp_bar(stdscr, stack, headers, obj)