[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: [Bug 87415] automatic indentation for first function of a c file
From: Andrew Fuller <knightoflore () yahoo ! com>
Date: 2005-01-31 20:17:34
Message-ID: 20050131201734.28123.qmail () ktown ! kde ! org
[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=87415
------- Additional Comments From knightoflore yahoo com 2005-01-31 21:17 -------
I can confirm this using KDE 3.4Beta1(Kate 2.4)
Create a .c file. Set the highlighting to C (trust me -- do it!). Set the \
indentation to C Style.
On the first line type:
int foo() {[enter]
<-- next line is indented
Remove the indented line (back up to the first line)
Move it down one line ( "int food() {" is now on line 2)
Hit enter at the end of the function specifier (same place as before.
Get:
[newline]
int foo() {
<-- line is *not* indented
Can remove the first (blank) line and repeat steps. indentation occurs. indentation \
doesn't occur. indentation occurs. indentation doesn't occur.
On a side note which may help track down this bug, or may be another bug entirely:
Same setting as above:
put "int foo() {" on the first line. Hit [Enter]. Indentation occurs.
Tools -> Highlighting -> None
Hit [Enter] after '{' (same place as usual). No indentation!!
Why should highlighting have any affect on the indentation? Looks like some function \
is playing with someone else's toys.
Hope that helps find it. I love coding in Kate, but this indentation not working 1% \
of the time gets frustrating :(
Cheers!
_______________________________________________
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