Hi,

Before I create a bug report, I would like to confirm this (maybe
there is a IDE setting I missed).

I am using the latest SVN version of Lazarus under GNU/Linux compiled
with the GTK1 interface, updated this morning (9377).

If I edit a .pas file with gedit (Gnome Editor which supports tab
charaters for indentation) and use tabs instead of spaces for
indentation, Lazarus displays it correctly.  Lets say I used a tab
width of 8 in both gedit and Lazarus.

<t>   = tab
<s>  = space

--------------  sample pas file  --------------------
begin
<t>if (getGnome = null &
<t><s><s><s><s>getKDE = null)
<t>{
<t><t>// do something
<t><t>{ it has 2 tabs ahead }
<t>}
end.
------------------    end   --------------------------------

Now I edit this file in Lazarus, and add a third comment line and also
used 2 tabs infront of the comment.  Everything looks fine in Lazarus,
so I save.

Now I change gedits tab with to 4 and open that source file.  The
newly added line didn't line up with the other comments, because
spaces were inserted instead of tabs.

Another way of testing this is viewing that same file in Lazarus.  Go
to the editor options and change the Tab Width to 4.  All the lines
move, except the last line added using Lazarus.

Using the arrow keys, and pressing left or right, shows it is jumping
tabs, but again for that third comment line, it jumps single spaces.

Now in the editor options, I don't have the "Tabs to Spaces" ticked
and I don't have "Smart Tabs" ticked.  I attached a screenshot of my
Editor Settings for incase.

Is this a bug, or some setting I am missing somewhere?

PS:
Is there a setting to show Tab and Space charaters in the editor like
Delphi 7 does?


Regards,
 Graeme.


--
There's no place like 127.0.0.1

Attachment: Editor_options.png
Description: PNG image

Reply via email to