Version: unspecified (using KDE 4.5.4)
Steps to Reproduce:
In C++ mode, type the following 1 line
a(); // "b"
and hit Enter.
The cursor get aligned with the first quotation mark (column 9 in this example)
The cursor should be at the start of the second line.
this bug gets quite annoying if the comment is too long, so it spans multiple displayed lines (while being on one logical line) - when editing the following line, no indentation (Tab, Backspace, Space) is possible. (More precisely, it seems that indentation keys do work, but the apparent effect is none. But holding backspace for long enough solves it).
my Kate version is 3.5.4, as reported in its About dialog
possibly related to #248973
should be fixable by checking for "am I in comment" before doing the wrapped-string alignment.
I think I've fixed this bug with my last commit:
Can anyone please comfirm it ?
Add a unit test and run the cstyle indentation test suite. If there are no regressions, it'll be fine.
Done, no regressions. This bug can now be marked as fixed :)
SVN commit 1209880 by cullmann:
Miquel Sabaté <firstname.lastname@example.org>:
Fixing Bug #260357: JJ: indentation aligns cursor with quotation mark in comment
M +8 -1 cstyle.js
WebSVN link: http://websvn.kde.org/?view=rev&revision=1209880