[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    [Bug 102871] New: c++ comments are misaligned
From:       Leo Savernik <l.savernik () aon ! at>
Date:       2005-03-30 16:09:23
Message-ID: 20050330180922.102871.l.savernik () aon ! at
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=102871         
           Summary: c++ comments are misaligned
           Product: kate
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel kde org
        ReportedBy: l.savernik aon at


Version:            (using KDE KDE 3.4.0)
Compiler:          gcc 2.95.2 
OS:                Linux

Using c-style indentation, and tab-key inserting tabs, one cannot vertically align \
c++ comments in the flow of typing.

Example (\t denotes a tab character, | the caret):

int bla;\t// fla fla|

Now the line becomes too short, and I want to
extend the comment to the next line so that the start of the comment is exactly \
positioned beneath the comment of the previous comment.

Hence, I hit enter and tab twice:

int bla;\t// fla fla
\t\t|

The caret is now perfectly aligned with the // of the previous line (not visible \
here). When I type the first slash, the following happens:

int bla;\t// fla fla
/|

Kate *removes* the tabs and aligns the comment to the first non-whitespace character \
of the previous line.

The expected result would have been:

int bla;\t// fla fla
\t\t/|

Adding the tabulators afterwards is a workaround, but very cumbersome as it breaks \
the flow of typing. _______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic