minor fix and cleanup

This commit is contained in:
The MMGen Project 2022-11-26 18:55:55 +00:00
commit eacf3ae802
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ class TwView(MMGenObject,metaclass=AsyncInit):
--columns or MMGEN_COLUMNS value ({}) is too small to display the {}.
Minimum value for this configuration: {}
"""
twid_errmsg = """
twidth_errmsg = """
Screen is too narrow to display the {}
Please resize your screen to at least {} characters and hit any key:
"""
@ -218,7 +218,7 @@ class TwView(MMGenObject,metaclass=AsyncInit):
if g.columns:
die(1,'\n'+fmt(self.tcols_errmsg.format(g.columns,self.desc,min_cols),indent=' '))
else:
get_char_raw('\n'+fmt(self.twid_errmsg.format(self.desc,min_cols),append=''))
get_char_raw('\n'+fmt(self.twidth_errmsg.format(self.desc,min_cols),append=''))
else:
return min_cols

View file

@ -164,7 +164,7 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
('subgroup.txhist', ['main']),
('subgroup.label', ['main']),
('subgroup.view', ['label']),
('subgroup.auto_chg', ['view']),
('subgroup.auto_chg', ['label']),
('stop', 'stopping regtest daemon'),
)
cmd_subgroups = {