Pelles C forum

Pelles C => Bug reports => Topic started by: dsula on November 27, 2005, 02:49:49 AM

Title: indent bug
Post by: dsula on November 27, 2005, 02:49:49 AM
Hi,
Block indent doesn't seem to work correctly. The cursor is always positioned at column 1 whereas I expect it to be positioned at the beginning of the previous line. Smart Indent works fine, just block indent doesn't.

Cheers
ds
Title: indent bug
Post by: Pelle on November 28, 2005, 10:26:39 PM
Hmm... I can't reproduce it here...

What does the previous line look like?

Pelle
Title: indent bug
Post by: dsula on November 28, 2005, 11:16:56 PM
Actually it works only half way.

Consider this line, where block indent works correctly:
<tab>text

However it doesnt work right with spaces.
<spc>text

The new line will fall back to first column.

Also the line following
<tab><spc>text
will fall back to
<tab>text

Please correct this as fast as possible, it drives my nuts.  :shock:
Thanks
ds
Title: indent bug
Post by: Pelle on December 02, 2005, 07:04:59 AM
I'm looking at it. The problem is that many calculations are based on the Tab size setting, so any attempt at indenting less than this number will cause problems (rounding down to the previous multiple of the tab size, and so on...). It doesn't matter if "Keep tabs" or "Insert spaces" is selected.

Either way I look at it, it will not be a quick fix... :-(

Pelle