X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pyderasn.py;h=e08f6bad3a090204af25441d78c285fec6521034;hb=829b592259313b4ea400e952c75550990642f353;hp=19e026dc109115f371675b7218230488a37e27b8;hpb=941eba18c136b2a70e97edc4e8b86134e27021ca;p=pyderasn.git diff --git a/pyderasn.py b/pyderasn.py index 19e026d..e08f6ba 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -1204,7 +1204,7 @@ except ImportError: # pragma: no cover def colored(what, *args, **kwargs): return what -__version__ = "8.2" +__version__ = "8.4" __all__ = ( "agg_octet_string", @@ -7675,7 +7675,7 @@ def browse(raw, obj, oid_maps=()): self._state_update() return super(TW, self).selectable() - def get_display_text(self): + def _get_display_text_without_offset(self): pp, constructed = self._get_pp() style = "constructed" if constructed else "" if len(pp.decode_path) == 0: @@ -7693,6 +7693,11 @@ def browse(raw, obj, oid_maps=()): )) return (style, ent) + def get_display_text(self): + pp, _ = self._get_pp() + style, ent = self._get_display_text_without_offset() + return [(style, ent), " [%d]" % pp.offset] + def _scroll(self, what, step): self.state[what]._invalidate() pos = self.state[what].focus_position