NO

Author Topic: indent bug  (Read 4285 times)

dsula

  • Guest
indent bug
« 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
indent bug
« Reply #1 on: November 28, 2005, 10:26:39 PM »
Hmm... I can't reproduce it here...

What does the previous line look like?

Pelle
/Pelle

dsula

  • Guest
indent bug
« Reply #2 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
indent bug
« Reply #3 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
/Pelle