SVN commit 525138 by jsixt: Don't expand tabs in KateDocument::editInsertText(). This fixes Undo, which expanded tabs when "Insert spaces instead of tabulators" is enabled. It also affects the behavior of transpose() if one of the transposed characters is a tab. The old behavior is that the tab is replaced by spaces, whereas the new behavior keeps the tab even if "Insert spaces instead of tabulators" is enabled. CCBUG: 113135 M +0 -12 katedocument.cpp --- trunk/KDE/kdelibs/kate/part/katedocument.cpp #525137:525138 @@ -1165,18 +1165,6 @@ if (!l) return false; - if ( config()->configFlags() & KateDocumentConfig::cfReplaceTabsDyn ) - { - uint tw = config()->tabWidth(); - int pos = 0; - uint l = 0; - while ( (pos = s.indexOf('\t')) > -1 ) - { - l = tw - ( (col + pos)%tw ); - s.replace( pos, 1, QString().fill( ' ', l ) ); - } - } - editStart (); editAddUndo (KateUndoGroup::editInsertText, line, col, s.length(), s);