[DEBUG] error writing

This commit is contained in:
Edouard DUPIN 2014-04-16 22:21:20 +02:00
parent 8d0fc9023f
commit 0821335de6
2 changed files with 4 additions and 2 deletions

View File

@ -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;
@ -985,4 +985,4 @@ uint32_t appl::Buffer::getCursorLinesId(void) {
}
}
return line;
}
}

View File

@ -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();