1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 06:08:05 +03:00

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