Skip to content

Commit

Permalink
small typo and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyDiGirolamo committed Dec 2, 2015
1 parent 6baa277 commit 4a989b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions todotxt_machine/urwid_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def setCompletionMethod(self, callback):
def keypress(self, size, key):
# import ipdb; ipdb.set_trace()
if self.key_bindings.is_binded_to(key, 'edit-home'):
self.set_edit_pos(0)
self.set_edit_pos(0) # move to the beginning of the line
elif self.key_bindings.is_binded_to(key, 'edit-end'):
sef.set_edit_pos(len(self.edit_text) - 1)
self.set_edit_pos(len(self.edit_text) - 1) # move to the end of the line
elif self.key_bindings.is_binded_to(key, 'edit-delete-end'):
self.parent_ui.yanked_text = self.edit_text[self.edit_pos:]
self._delete_highlighted()
Expand Down

0 comments on commit 4a989b1

Please sign in to comment.