[shpy-commit] r2888 - shpy/trunk/dist/shpy/ui_pygame
mwh@codespeak.net
mwh@codespeak.net
Fri, 23 Jan 2004 15:49:33 +0100 (MET)
Author: mwh
Date: Fri Jan 23 15:49:32 2004
New Revision: 2888
Modified:
shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
Log:
Fix cursor position on C-k when self.cursor.x > len(self.cursor.line).
Modified: shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py
==============================================================================
--- shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py (original)
+++ shpy/trunk/dist/shpy/ui_pygame/ui_pygame.py Fri Jan 23 15:49:32 2004
@@ -232,8 +232,7 @@
self.cursor.x = len(self.cursor.line.content)
def CTRL_K_k(self, event):
- line = self.cursor.line
- x = self.cursor.x
+ x, line = self.cursor.xline()
for c in line.content[x:]:
if not c.isspace():
line.content = line.content[:x]