def move_left(self): screen, doc = self.context() if not screen.start_of_line(): self.move_cursor_left() elif screen.start_of_line() and \ not doc.first_line() and \ not screen.hidden_left(): self.move_up() self.end_of_line() elif screen.start_of_line() and \ screen.hidden_left(): self.show_left_section() self.end_of_screen_line() * * * def move_left(self): screen, doc = self.context() if not screen.start_of_line(): self.cursor.move_left() elif screen.start_of_line() and \ not doc.first_line() and \ not screen.hidden_left(): self.screen.move_up() self.doc.end_of_line() elif screen.start_of_line() and \ screen.hidden_left(): self.screen.show_left_section() self.screen.end_of_line() # [EOF]