cap max_width to at least 10; improve valign on goto

pull/4/head
Blake DeMarcy 2017-04-15 15:29:42 -05:00
parent 9cefe28135
commit eb8e4fa844
1 changed files with 4 additions and 3 deletions

View File

@ -716,7 +716,7 @@ class App(object):
self.loop.widget = urwid.Overlay(
popup, self.loop.widget,
align=("relative", 50),
valign=("relative", 50),
valign=("relative", 25 if self.window_split else 50),
width=20, height=6)
@ -895,8 +895,9 @@ class App(object):
def edit_width(self, editor, content):
self.prefs["max_text_width"] = \
int(content) if content else 0
value = int(content) if content else 0
if value < 10: value = 10
self.prefs["max_text_width"] = value
bbjrc("update", **self.prefs)