summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
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