replacing spaces with a tab doesn't work
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
I have "use tabs" on, "smart tabs" off, when I have I
line for example:
WNDCLASS wc;
then position cursor before WNDCLASS and press tab it
should replace spaces with tab, instead it inserts the
tab in from of the four spaces and keeps the spaces
(spaces are still highlighted).
http://sourceforge.net/tracker/index.php?func=detail&aid=1066769&group_id=3221&atid=103221
Logged In: NO
I've noticed similar behavior. If I type the following (text in
angle
brackets are keypresses; everything else is a literal string)...
int test() {<enter>
if (test2())<enter>
<tab>return 1;<enter>
<backspace>else<enter>
<tab>return 0;<enter>
}
...I get this output:
int test() {
if (test2())
return 1;
else
return 0;
}
This is with four-space tabs, "use tab character" on, and
"smart tabs" off.
It autoindents after the first time I hit enter, inserting a tab.
Then I
type
a line and manually enter another tab and some text, but that
tab gets
converted to four spaces. When I hit enter again, it remains
indented to
the
level of "return 1;", so I hit backspace. At this point, it puts
me on a
new
line with no tabs and ONE space. I type else, hit enter, and
indent
another
level with the tab key. This time it inserts only three spaces,
bringing it
up to four total. (since it kept the extra space from the
previous line.)
If I insert braces to go with the if/else statements, the
autoindenting
works
perfectly, and no spaces are inserted where there should be
tabs. The odd
behavior only shows up when the braces are left out.