Made sure evmore does pass its kwargs on to the main msg method at all times.
This commit is contained in:
parent
900ada5e92
commit
b9043a9e95
1 changed files with 2 additions and 2 deletions
|
|
@ -102,6 +102,7 @@ class EvMore(object):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
self._caller = caller
|
self._caller = caller
|
||||||
|
self._kwargs = kwargs
|
||||||
lines = text.split("\n")
|
lines = text.split("\n")
|
||||||
self._pages = []
|
self._pages = []
|
||||||
self._npages = []
|
self._npages = []
|
||||||
|
|
@ -121,7 +122,6 @@ class EvMore(object):
|
||||||
# go into paging mode
|
# go into paging mode
|
||||||
# first pass on the msg kwargs
|
# first pass on the msg kwargs
|
||||||
caller.ndb._more = self
|
caller.ndb._more = self
|
||||||
caller.msg(**kwargs)
|
|
||||||
caller.cmdset.add(CmdSetMore)
|
caller.cmdset.add(CmdSetMore)
|
||||||
|
|
||||||
# goto top of the text
|
# goto top of the text
|
||||||
|
|
@ -136,7 +136,7 @@ class EvMore(object):
|
||||||
page = _DISPLAY.format(text=text,
|
page = _DISPLAY.format(text=text,
|
||||||
pageno=pos + 1,
|
pageno=pos + 1,
|
||||||
pagemax=self._npages)
|
pagemax=self._npages)
|
||||||
self._caller.msg(page)
|
self._caller.msg(text=page, **self._kwargs)
|
||||||
|
|
||||||
def page_top(self):
|
def page_top(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue