From 5602bc10e879e166af49ed9255bb5742f9390a2d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 8 Oct 2012 14:28:38 +0200 Subject: DisplayAtom: only let DisplayLine touch m_begin and m_end --- src/display_buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display_buffer.cc') diff --git a/src/display_buffer.cc b/src/display_buffer.cc index 5b8aaff3..ac2bb593 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -12,8 +12,8 @@ DisplayLine::iterator DisplayLine::split(iterator it, BufferIterator pos) assert(it->content.end() > pos); DisplayAtom atom = *it; - atom.content.end() = pos; - it->content.begin() = pos; + atom.content.m_end = pos; + it->content.m_begin = pos; return m_atoms.insert(it, std::move(atom)); } -- cgit v1.2.3