summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-09-27 15:17:35 +0200
committerAnton Khirnov <anton@khirnov.net>2014-09-27 15:17:35 +0200
commita27dbb8a8e1eea59d7eecb3f4120599eb2c46826 (patch)
treed8ca2f2df1f031e2b8a9f705e0c675364ebbdfe0
parent59591b85577edde016412aa5217221d6e8835051 (diff)
downloadurwid-a27dbb8a8e1eea59d7eecb3f4120599eb2c46826.tar.gz
raw_display: enable code for skipping unchanged rows during redraw
Significantly improves redraw performance.
-rw-r--r--urwid/raw_display.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/raw_display.py b/urwid/raw_display.py
index a3d14a0..4853a83 100644
--- a/urwid/raw_display.py
+++ b/urwid/raw_display.py
@@ -745,7 +745,7 @@ class Screen(BaseScreen, RealTerminal):
cy = 0
for row in r.content():
y += 1
- if False and osb and osb[y] == row:
+ if osb and osb[y] == row:
# this row of the screen buffer matches what is
# currently displayed, so we can skip this line
sb.append( osb[y] )