From f677d4ba32ea09aa9de2d5efd3407e842995c292 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 6 Mar 2013 20:25:23 +0100 Subject: Use a ColorPair in DisplayAtoms instead of separate fg/bg colors --- 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 bdd7d68a..dbc3a596 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -30,8 +30,7 @@ void DisplayLine::optimize() auto& atom = *atom_it; auto& next_atom = *next_atom_it; - if (atom.fg_color == next_atom.fg_color and - atom.bg_color == next_atom.bg_color and + if (atom.colors == next_atom.colors and atom.attribute == next_atom.attribute and atom.content.type() == AtomContent::BufferRange and next_atom.content.type() == AtomContent::BufferRange and -- cgit v1.2.3