[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 113135] Undo restores wrong tab characters
From: Johannes Sixt <johannes.sixt () telecom ! at>
Date: 2006-03-31 22:15:22
Message-ID: 20060331221522.20856.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=113135
------- Additional Comments From johannes.sixt telecom at 2006-04-01 00:15 -------
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