fix insert position when erasing a code point in insert mode
This commit is contained in:
parent
30fe7e32d3
commit
723b96f624
@ -196,5 +196,9 @@ void Buffer::erase_code_point(const Buffer::Iterator & position)
|
||||
iterator->warp(-(ssize_t)bytes, lines);
|
||||
}
|
||||
}
|
||||
if (m_insert_position > position.offset())
|
||||
{
|
||||
m_insert_position -= bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user