equal
deleted
inserted
replaced
417 removeSelectedText(); |
417 removeSelectedText(); |
418 } |
418 } |
419 |
419 |
420 |
420 |
421 int c = m_cursor; // cursor position after insertion of commit string |
421 int c = m_cursor; // cursor position after insertion of commit string |
422 if (event->replacementStart() == 0) |
422 if (event->replacementStart() <= 0) |
423 c += event->commitString().length() + qMin(-event->replacementStart(), event->replacementLength()); |
423 c += event->commitString().length() + qMin(-event->replacementStart(), event->replacementLength()); |
424 |
424 |
425 m_cursor += event->replacementStart(); |
425 m_cursor += event->replacementStart(); |
426 |
426 |
427 // insert commit string |
427 // insert commit string |