[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/part
From: Johannes Sixt <Johannes.Sixt () telecom ! at>
Date: 2006-03-31 22:15:11
Message-ID: 1143843311.891942.30110.nullmailer () svn ! kde ! org
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic