Skip to content

Commit e1fa4d1

Browse files
committed
Windows cmd moving over several lines fixed.
1 parent bb0a591 commit e1fa4d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scrolltext/linescroller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _linescroller(getch, write_config):
3737
cfg = init_utils(write_config)
3838
argv = {}
3939
argv["term_rows"] = shutil.get_terminal_size()[1]
40-
argv["term_columns"] = shutil.get_terminal_size()[0]
40+
argv["term_columns"] = shutil.get_terminal_size()[0] - (1 if IS_WINDOWS else 0)
4141
argv["min_scroll_line"] = 0
4242
scroller = CharacterScroller(cfg, **argv)
4343

0 commit comments

Comments
 (0)