From bb00a2d48db6aec056de3a67f189b4a6a03e3872 Mon Sep 17 00:00:00 2001 From: moculus Date: Thu, 10 Apr 2008 13:34:46 +0000 Subject: [PATCH] fixed highlighting bug --HG-- branch : pmacs2 --- application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.py b/application.py index e715aff..bbb3109 100755 --- a/application.py +++ b/application.py @@ -627,7 +627,7 @@ class Application(object): else: self.highlight_chars(slot.y_offset + count, px-x + w.mode.lmargin, slot.width - 1, fg, bg) 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 y += 1 else: