--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-04-10 15:01:48 +00:00
parent da994c526c
commit cc050512c8
1 changed files with 2 additions and 1 deletions

View File

@ -562,7 +562,8 @@ class Application(object):
if p.y == y and p.x >= x and p.x < x + swidth:
(vy, vx) = (slot.y_offset + count, p.x - x + w.mode.lmargin)
break
if x + swidth >= len(w.buffer.lines[y]):
if y >= len(w.buffer.lines) or x + swidth >= len(w.buffer.lines[y]):
x = 0
y += 1
else: