diff --git a/sources/appl/TextPluginMultiLineTab.cpp b/sources/appl/TextPluginMultiLineTab.cpp index 2885d61..354c7e4 100644 --- a/sources/appl/TextPluginMultiLineTab.cpp +++ b/sources/appl/TextPluginMultiLineTab.cpp @@ -40,7 +40,7 @@ bool appl::TextPluginMultiLineTab::onEventEntry(appl::TextViewer& _textDrawer, appl::Buffer::Iterator itStart = _textDrawer.m_buffer->selectStart(); appl::Buffer::Iterator itStop = _textDrawer.m_buffer->selectStop(); // get the compleate section of the buffer : - itStart = _textDrawer.m_buffer->getStartLine(itStart); + itStart = _textDrawer.m_buffer->getStartLine(itStart+1); itStop = _textDrawer.m_buffer->getEndLine(itStop); // copy the curent data in a classicle string: std::string data; @@ -57,13 +57,13 @@ bool appl::TextPluginMultiLineTab::onEventEntry(appl::TextViewer& _textDrawer, continue; } if(data[iii] == etk::UChar::Tabulation) { - data.erase(iii); + data.erase(iii, 1); } else if(data[iii] == etk::UChar::Space) { for (esize_t jjj=0; jjj