'Go to specified line number in current active editor.'

def goto_line(self, line_number):

    if line_number:
        line_number = int(line_number)
        editor = self.get_widget()
        try:
            editor.go_to_line(min(line_number, editor.get_line_count()))
        except AttributeError:
            pass
