Skip to content

Commit

Permalink
Fix Indents on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
awb95 committed Aug 19, 2022
1 parent bb4ce86 commit 76d59f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rubberduck.SmartIndenter/LogicalCodeLine.cs
Expand Up @@ -47,6 +47,10 @@ public int NextLineIndents
get
{
RebuildContinuedLine();
if (_rebuilt.ContainsOnlyComment)
{
return 0;
}
return _rebuilt.Segments.Count() < 2
? _rebuilt.NextLineIndents
: _rebuilt.Segments.Select(s => new AbsoluteCodeLine(s, _settings)).Select(a => a.NextLineIndents).Sum();
Expand Down

0 comments on commit 76d59f8

Please sign in to comment.