From 5655c2df487da073f830bfd891c887e8adea3a2f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 31 Oct 2015 12:38:09 +0100 Subject: [PATCH] New client: Minor variable renaming (make it more descriptive). --- client_prototype.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_prototype.py b/client_prototype.py index 2340bfe..2ed03fd 100644 --- a/client_prototype.py +++ b/client_prototype.py @@ -127,8 +127,8 @@ def draw_screen(): and x_in_screen < screen_size[1]): stdscr.addch(y_in_screen, x_in_screen, cell) def draw_scroll_hints(): - def draw_scroll_string(hint_number): - hint = ' ' + str(hint_number + 1) + ' more ' + unit + ' ' + def draw_scroll_string(n_lines_outside): + hint = ' ' + str(n_lines_outside + 1) + ' more ' + unit + ' ' if len(hint) <= win["size"][ni]: non_hint_space = win["size"][ni] - len(hint) hint_offset = int(non_hint_space / 2) -- 2.30.2