diff options
author | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2006-11-05 15:22:50 (GMT) |
---|---|---|
committer | DonScorgie <DonScorgie@8f060a39-251c-0410-b1f3-431655927647> | 2006-11-05 15:22:50 (GMT) |
commit | fb048aac002c09de05a65cd9b5ec079c0ab815d9 (patch) | |
tree | 9806d18f12a0fd47eb91503403588290ddc25442 /src/TextThought.py | |
parent | 7df81aa8c1f7f5f0482b311b5f29923f9047f1cb (diff) |
* src/TextThought.py:
Make backspace work again at end of text
git-svn-id: http://labyrinth.googlecode.com/svn/trunk@112 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r-- | src/TextThought.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py index 1df727f..e42f4ed 100644 --- a/src/TextThought.py +++ b/src/TextThought.py @@ -363,7 +363,7 @@ class TextThought (BaseThought.BaseThought): bleft = self.bytes[:self.b_f_i(self.index)-1] bright = self.bytes[self.b_f_i(self.index):] local_text = self.text[self.index-int(self.bytes[self.bindex-1]):self.index] - local_bytes = self.bytes[self.b_f_i(self.index-1)] + local_bytes = self.bytes[self.b_f_i(self.index)-1] self.index-=int(self.bytes[self.bindex-1]) self.text = left+right self.bytes = bleft+bright |