Summary: | Auto-indent in "C Style" put cursor to a wrong position | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Jie Gao <gaoj> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra |
Priority: | NOR | ||
Version: | 2.3.1 | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: |
Description
Jie Gao
2004-11-18 01:50:41 UTC
On Thursday 18 November 2004 00:50, Jie Gao wrote:
> In kate (anything that uses kate part), if the Indentation Mode is set to
> "C Style", auto-indent will put the cursor to a wrong position.
I had this problem in csands. I can't remember how I fixed it, but it might be
a good place to look for inspiration.
CVS commit by dhaumann: fix bug #93484. CCBUG: 93484 M +0 -1 kateautoindent.cpp 1.23.2.3 --- kdelibs/kate/part/kateautoindent.cpp #1.23.2.2:1.23.2.3 @@ -485,5 +485,4 @@ void KateCSmartIndent::processNewline (K { KateAutoIndent::processNewline (begin, needContinue); - begin.setCol(begin.col() - 1); } CVS commit by dhaumann: fix bug #93484: C Style indenter puts cursor to a wrong position. BUG: 93484 M +0 -1 kateautoindent.cpp 1.44 --- kdelibs/kate/part/kateautoindent.cpp #1.43:1.44 @@ -529,5 +529,4 @@ void KateCSmartIndent::processNewline (K { KateAutoIndent::processNewline (begin, needContinue); - begin.setCol(begin.col() - 1); } |