Commit e397f38b authored by louiz’'s avatar louiz’

Merge remote-tracking branch 'linkmauve/big-performances-improvement'

parents 409b1513 69b4480e
......@@ -69,6 +69,7 @@ log = logging.getLogger(__name__)
from poezio.config import config
import curses
import functools
import os
from os import path
......@@ -403,6 +404,7 @@ def read_tuple(_str):
char = attrs[2] if len(attrs) > 2 else '\0'
return (int(attrs[0]), int(attrs[1])), char
def to_curses_attr(color_tuple):
Takes a color tuple (as defined at the top of this file) and
......@@ -47,10 +47,11 @@ class UserList(Win):
self.cache = new
for i in range(len(old)):
if old[i] != new[i]:
for a, b in zip(old, new):
if a != b:
self.cache = new
def refresh(self, users):
log.debug('Refresh: %s', self.__class__.__name__)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment