branch : pmacs2
This commit is contained in:
moculus 2008-04-09 21:55:03 +00:00
parent 3ee0d56de6
commit 86efac510a
1 changed files with 14 additions and 0 deletions

View File

@ -31,6 +31,20 @@ class Hex(mode.Fundamental):
else: else:
self.del_binding(c) self.del_binding(c)
def enable_line_numbers(self):
self.show_line_numbers = True
self.lmargin = 12
def disable_line_numbers(self):
self.show_line_numbers = False
self.lmargin = 0
def get_lmargin(self, y, x=0, ended=False, cont=False):
lm = self.lmargin
if ended:
s = ' -------- '
elif x == 0:
s = '0x%08x ' % y
return (s, color.build('default', 'default', 'bold'))
class GotoWord(Method): class GotoWord(Method):
'''Jump to the specified line number''' '''Jump to the specified line number'''
args = [Argument("wordno", type=type(0), prompt="Goto word: ")] args = [Argument("wordno", type=type(0), prompt="Goto word: ")]