Buffer: allow insert_code_point() to be called outside of insert mode
This commit is contained in:
parent
21320d9ea7
commit
348d11e992
@ -165,8 +165,6 @@ void Buffer::exit_insert_mode()
|
||||
}
|
||||
|
||||
void Buffer::insert_code_point(const Buffer::Iterator & position, uint32_t code_point, bool adjust_iterators)
|
||||
{
|
||||
if (m_insert_mode)
|
||||
{
|
||||
Buffer::Iterator local_position = position;
|
||||
if ((code_point != '\n') && (size() == 0u))
|
||||
@ -189,7 +187,6 @@ void Buffer::insert_code_point(const Buffer::Iterator & position, uint32_t code_
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Buffer::erase_code_point(const Buffer::Iterator & position)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user