From d3f586f3780235a8308bf6b2efa1badcdc0f657e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 18 Mar 2013 23:34:40 +0100 Subject: [PATCH] DisplayBuffer::split does not check if the split is on a character boundary --- src/display_buffer.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/display_buffer.cc b/src/display_buffer.cc index dbc3a596..d9ab9609 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -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;