[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 117061] New: indentation remains on new (empty) line even when I
From: Nick Thompson <nickthompson () agere ! com>
Date: 2005-11-25 13:59:05
Message-ID: 20051125145903.117061.nickthompson () agere ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=117061
Summary: indentation remains on new (empty) line even when I only
press return again
Product: kate
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: kwrite-devel kde org
ReportedBy: nickthompson agere com
Version: 2.4.91 (using KDE 3.4.91 (beta1, >= 20050910), compiled sources)
Compiler: gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
OS: Linux (i686) release 2.4.21-20.ELsmp
If I have a line of 'C' source with the cursor at the end and I then press return I \
get, for example (with '.' as visible space and '|' as cursor):
....if (x == 1) {
........|
If I now only press return again and then type something else, I get:
....if (x == 1) {
........
......../* a comment */|
Not strictly wrong in any sense, but would it be possible to avoid leaving the indent \
chars on line 2 of the example?
One way would be to check if the line is otherwise empty and remove the spaces if \
return is pressed. It would be better, if kate new that it had just put those spaces \
there and not remove them if it hadn't, but that might be going too far...
Another solution might be, to always insert the return by backtracking through white \
space and inserting the return there, rather than at the cursor position. Hmm not \
sure about that one.
Final idea, an option called "Remove trailing white space on return", that cleans up \
trailing white space only on lines where return is pressed.
I can't enable remove trailing white space, since it might modify lines I have not \
touched (e.g. svn blame assigned to me).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic