diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:28:38 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:28:38 +0200 |
| commit | 5602bc10e879e166af49ed9255bb5742f9390a2d (patch) | |
| tree | 5f1be83dc1aaeaf762a7028e185c59507eba7bdb /src/display_buffer.cc | |
| parent | 7e046e3f0b02e9f70d436a7fd029280fef3face8 (diff) | |
DisplayAtom: only let DisplayLine touch m_begin and m_end
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |
