Index: kate/part/kateautoindent.cpp =================================================================== --- kate/part/kateautoindent.cpp (Revision 570245) +++ kate/part/kateautoindent.cpp (Revision 570246) @@ -1494,7 +1494,7 @@ bool doxygenAutoInsert = doc->config()->configFlags() & KateDocumentConfig::cfDoxygenAutoTyping; // starts with *: indent one space more to line up *s - if ( textLine->stringAtPos(first, "*") ) + if ( first > 0 && textLine->stringAtPos(first, "*") ) indent = indent + " "; // does not start with *: insert one if user wants that else if ( doxygenAutoInsert )