This commit is contained in:
Kovid Goyal 2015-04-03 09:37:32 +05:30
parent 0fb6ef9dc0
commit 0e405f10d6

View File

@ -48,10 +48,10 @@ def nonblocking_readlines(window, fileobj, buf, name, copy_to=None):
def show_line(window, line, fname): def show_line(window, line, fname):
line = clean_pat.sub(b'', line) line = clean_pat.sub(b'', line)
max_lines, max_chars = window.getmaxyx()
if line: if line:
continue_prompt = b'> ' continue_prompt = b'> '
title = str(b" %s " % fname) title = str(b" %s " % fname)
max_lines, max_chars = window.getmaxyx()
max_line_len = max_chars - 2 max_line_len = max_chars - 2
if len(line) > max_line_len: if len(line) > max_line_len:
first_portion = line[0:max_line_len - 1] first_portion = line[0:max_line_len - 1]