home · contact · privacy
New client: Minor variable renaming (make it more descriptive).
authorChristian Heller <c.heller@plomlompom.de>
Sat, 31 Oct 2015 11:38:09 +0000 (12:38 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 31 Oct 2015 11:38:09 +0000 (12:38 +0100)
client_prototype.py

index 2340bfed6dbaf8e1b3614ee02b6cbe56026ef3a8..2ed03fd645dc46c0357e97e910f6362be0a3d444 100644 (file)
@@ -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)