[DEBUG] error writing
This commit is contained in:
parent
8d0fc9023f
commit
0821335de6
@ -632,7 +632,7 @@ bool appl::Buffer::write(const std::string& _data, const appl::Buffer::Iterator&
|
||||
if (position < 0){
|
||||
position = 0;
|
||||
}
|
||||
APPL_ERROR("writye at pos: " << (int64_t)_pos << " ==> " << position);
|
||||
APPL_VERBOSE("write at pos: " << (int64_t)_pos << " ==> " << position << " data : " << _data);
|
||||
m_data.insert(position, (int8_t*)(_data.c_str()), _data.size());
|
||||
if (m_cursorPos < 0) {
|
||||
m_cursorPos = 0;
|
||||
|
@ -349,6 +349,8 @@ bool appl::TextViewer::onEventEntry(const ewol::event::Entry& _event) {
|
||||
m_buffer->setSelectMode(false);
|
||||
// normal adding char ...
|
||||
char output[5];
|
||||
output[0] = '0';
|
||||
u32char::convertUtf8(localValue, output);
|
||||
if ( m_buffer->hasTextSelected() == false
|
||||
&& _event.getSpecialKey().getInsert() == true) {
|
||||
appl::Buffer::Iterator pos = m_buffer->cursor();
|
||||
|
Loading…
x
Reference in New Issue
Block a user