Fix cli crash with Python 3

This worked in Python 2 because type(4 / 2) == int but in Python 3 type(4 / 2) == float
pull/1568/head
Matthew D. Scholefield 2018-02-08 15:39:02 -06:00 committed by Matthew D. Scholefield
parent 8673f9cbb9
commit 78a6ec1ceb
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ def scroll_log(up, num_lines=None):
# default to a half-page
if not num_lines:
num_lines = size_log_area/2
num_lines = size_log_area // 2
if up:
log_line_offset -= num_lines