[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/part
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2005-04-03 22:51:52
Message-ID: 20050403225152.2A391632 () office ! kde ! org
[Download RAW message or body]
CVS commit by dhaumann:
Change a '* /' in doxygen comments to '*/', so you don't have to delete
the space by hand (especially when you use auto-insert-doxygen-asterisks).
M +11 -0 kateautoindent.cpp 1.59
--- kdelibs/kate/part/kateautoindent.cpp #1.58:1.59
@@ -630,5 +630,16 @@ void KateCSmartIndent::processChar(QChar
// anders: don't change the indent of doxygen lines here.
if ( textLine->attribute( begin.col() ) == doxyCommentAttrib )
+ {
+ // dominik: if line is "* /", change it to "*/"
+ if ( c == '/' )
+ {
+ int first = textLine->firstChar();
+ if ( first != -1 // if there is a first char
+ && textLine->getChar( first ) == '*' // and it is *
+ && textLine->nextNonSpaceChar( first+1 ) == view->cursorColumn()-1 ) // \
and the next char is in the same col as the cursor position + \
doc->removeText( view->cursorLine(), first+1, view->cursorLine(), \
view->cursorColumn()-1); + }
return;
+ }
processLine(begin);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic