summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-06 20:25:23 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-06 20:28:02 +0100
commitf677d4ba32ea09aa9de2d5efd3407e842995c292 (patch)
tree6e20e677432e799b94169a161a5bded36729384b /src/display_buffer.cc
parent594ee65949aebafef5848c458bcbb7093c204360 (diff)
Use a ColorPair in DisplayAtoms instead of separate fg/bg colors
Diffstat (limited to 'src/display_buffer.cc')
-rw-r--r--src/display_buffer.cc3
1 files changed, 1 insertions, 2 deletions
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