fixed highlighting bug

--HG--
branch : pmacs2
This commit is contained in:
moculus 2008-04-10 13:34:46 +00:00
parent 78565025d6
commit bb00a2d48d
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class Application(object):
else: else:
self.highlight_chars(slot.y_offset + count, px-x + w.mode.lmargin, slot.width - 1, fg, bg) self.highlight_chars(slot.y_offset + count, px-x + w.mode.lmargin, slot.width - 1, fg, bg)
px += slot.width - px + x - 1 px += slot.width - px + x - 1
if x + slot.width >= len(w.buffer.lines[y]): if x + slot.width > len(w.buffer.lines[y]):
x = 0 x = 0
y += 1 y += 1
else: else: