I can, but there's not too much there.
Code:
void EditboxView::update()
{
assert(model);
layoutPage();
}
I would expect it's being called from here:
Code:
void EditboxCursor::insertChar(int c)
{
if(host.isReadonly())
return;
Unicode::insertAtIndex(host.getBuffer(),c,index);
CursorPos cp = host.findCursor();
Unicode::insertAtIndex(cp.it->line, c, cp.index);
cp.it->numchars++;
host.markAsDirty(cp.it);
host.getView()->update();
(*this)++;
}
To clarify a bit, this is only a problem on the last line. Any line before the last, everything works fine. Also, it only happens when you're typing; pasting doesn't cause problems.