CVS commit by cullmann: one transaction for drag and drop of text BUG: 64459 M +7 -0 kateviewinternal.cpp 1.326 --- kdelibs/kate/part/kateviewinternal.cpp #1.325:1.326 @@ -2987,4 +2987,7 @@ void KateViewInternal::dropEvent( QDropE } + // use one transaction + m_doc->editStart (); + // on move: remove selected text; on copy: duplicate text if ( event->action() != QDropEvent::Copy ) @@ -2990,5 +2993,9 @@ void KateViewInternal::dropEvent( QDropE if ( event->action() != QDropEvent::Copy ) m_doc->removeSelectedText(); + m_doc->insertText( cursor.line(), cursor.col(), text ); + + m_doc->editEnd (); + placeCursor( event->pos() );