cap max_width to at least 10; improve valign on goto
parent
9cefe28135
commit
eb8e4fa844
|
@ -716,7 +716,7 @@ class App(object):
|
||||||
self.loop.widget = urwid.Overlay(
|
self.loop.widget = urwid.Overlay(
|
||||||
popup, self.loop.widget,
|
popup, self.loop.widget,
|
||||||
align=("relative", 50),
|
align=("relative", 50),
|
||||||
valign=("relative", 50),
|
valign=("relative", 25 if self.window_split else 50),
|
||||||
width=20, height=6)
|
width=20, height=6)
|
||||||
|
|
||||||
|
|
||||||
|
@ -895,8 +895,9 @@ class App(object):
|
||||||
|
|
||||||
|
|
||||||
def edit_width(self, editor, content):
|
def edit_width(self, editor, content):
|
||||||
self.prefs["max_text_width"] = \
|
value = int(content) if content else 0
|
||||||
int(content) if content else 0
|
if value < 10: value = 10
|
||||||
|
self.prefs["max_text_width"] = value
|
||||||
bbjrc("update", **self.prefs)
|
bbjrc("update", **self.prefs)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue