Version: 2.3.1 (using KDE KDE 3.3.1) Installed from: FreeBSD Ports Compiler: gcc-3.4.2 gcc version 3.4.2 [FreeBSD] 20040728 OS: FreeBSD 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. When kate tries to indent the text with tab characters, the last tab character is placed AFTER the cursor. E.g., you type: Hello[enter] [tab]world![enter] After that, you will find in the third line, the cursor is at the beginning of the line while a tab character is inserted AFTER the cursor. This only happens in "C Style" indentation mode. In "Normal" indentation mode there is no such error. This was also in KDE-3.3's kate. Another FreeBSD user has confirmed this problem.
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); }