Summary: | indent doesn't work correctly when using spaces instead of tabs | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Stylez Daviz <pol_potsmoker> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdevelop-devel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Stylez Daviz
2004-06-04 18:40:52 UTC
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'); |