From a32b49acd12538c27bf4f9abb8acd133e8cf2ee8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 11 Jul 2014 00:27:04 +0100 Subject: Rename ColorPair to Face and ColorRegistry to FaceRegistry Face also stores the attributes --- src/display_buffer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/display_buffer.cc') diff --git a/src/display_buffer.cc b/src/display_buffer.cc index 2c705bdb..af8d15e4 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -96,8 +96,7 @@ void DisplayLine::optimize() auto& next_atom = *next_atom_it; bool merged = false; - if (atom.colors == next_atom.colors and - atom.attribute == next_atom.attribute and + if (atom.face == next_atom.face and atom.type() == next_atom.type()) { auto type = atom.type(); -- cgit v1.2.3