DisplayBuffer::split does not check if the split is on a character boundary
This commit is contained in:
parent
2de0d0fccf
commit
d3f586f378
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user