5 "A minibuffer used to find a line by number."
7 def setup(self
, window
):
9 self
.window
.set_mini_label('Goto line:')
11 def key_press(self
, kev
):
13 if k
== g
.keysyms
.Return
:
14 line
= self
.window
.mini_entry
.get_text()
20 rox
.alert('Invalid line number: %s' % line
)
22 buffer = self
.window
.buffer
23 iter = buffer.get_iter_at_line(line
- 1)
24 buffer.place_cursor(iter)
25 self
.window
.text
.scroll_to_iter(iter,
27 self
.window
.set_minibuffer(None)