[Bug 82842] indent doesn't work correctly when using spaces instead of tabs
Dominik Haumann
dhdev at gmx.de
Tue Jul 6 22:35:07 UTC 2004
------- 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=82842
dhdev gmx de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From dhdev gmx de 2004-07-06 22:33 -------
CVS commit by dhaumann:
fix: tab alignment (in insert-space-mode) by Jesse Yurkovich.
CCMAIL: 82842-done bugs kde org
M +4 -1 katedocument.cpp 1.734
--- kdelibs/kate/part/katedocument.cpp #1.733:1.734
@ -3281,5 +3281,8 @ void KateDocument::insertIndentChars ( K
QString s;
if (config()->configFlags() & KateDocument::cfSpaceIndent)
- s.fill (' ', config()->indentationWidth());
+ {
+ int width = config()->indentationWidth();
+ s.fill (' ', width - (view->cursorColumnReal() % width));
+ }
else
s.append ('\t');
More information about the KDevelop-devel
mailing list