Fix generation of empty erase changes

Fixes #1308
This commit is contained in:
Maxime Coste 2017-04-20 17:31:27 +01:00
parent ab3a255d58
commit e722868c60
5 changed files with 10 additions and 0 deletions

View File

@ -495,6 +495,9 @@ BufferCoord Buffer::do_insert(BufferCoord pos, StringView content)
BufferCoord Buffer::do_erase(BufferCoord begin, BufferCoord end)
{
if (begin == end)
return begin;
kak_assert(is_valid(begin));
kak_assert(is_valid(end));
StringView prefix = m_lines[begin.line].substr(0, begin.column);

View File

@ -0,0 +1 @@
# Comment

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/core/kakrc.kak"
set buffer filetype kak