DisplayBuffer::split does not check if the split is on a character boundary

This commit is contained in:
Maxime Coste 2013-03-18 23:34:40 +01:00
parent 2de0d0fccf
commit d3f586f378

View File

@ -1,7 +1,6 @@
#include "display_buffer.hh" #include "display_buffer.hh"
#include "assert.hh" #include "assert.hh"
#include "utf8.hh"
namespace Kakoune namespace Kakoune
{ {
@ -12,8 +11,6 @@ DisplayLine::iterator DisplayLine::split(iterator it, BufferIterator pos)
assert(it->content.begin() < pos); assert(it->content.begin() < pos);
assert(it->content.end() > pos); assert(it->content.end() > pos);
assert(utf8::is_character_start(pos));
DisplayAtom atom = *it; DisplayAtom atom = *it;
atom.content.m_end = pos; atom.content.m_end = pos;
it->content.m_begin = pos; it->content.m_begin = pos;