Skip to content

Commit 779e8ce

Browse files
committed
bugfix: draw the box, when active.
1 parent 0be357d commit 779e8ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scrolltext/cursestext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def curses_scroller(win, cfg):
1818
:param cfg: Config object
1919
:type: configparser.ConfigParser
2020
"""
21-
if cfg["cursestext"].getboolean("box"):
22-
win.box()
2321
if not IS_WINDOWS:
2422
curses.curs_set(0) # Hide the cursor
2523

@@ -101,6 +99,8 @@ def draw_items(win, box, min_scroll_line, scroller, term_size):
10199
"""
102100
# clear the window contents
103101
win.clear()
102+
if box:
103+
win.box()
104104

105105
# and redraw screen
106106
if scroller.line != 1 and term_size.get_cols() > len("Scroll-Text"):

0 commit comments

Comments
 (0)