Menu

#2198 Indentation auto-discovery does not work well when indent.size and tabsize are different

Bug
closed-fixed
nobody
scite (196)
5
2020-09-11
2020-08-22
gnombat
No

Suppose SciTE is configured with the following settings:

tabsize=4
indent.size=2
use.tabs=0
indent.auto=1

The goal here is to use a 2-space indent without tabs; but, if a file is opened which already contains tabs, then SciTE should display each tab as wide as 4 spaces.

If you try opening a file which is indented using tabs, SciTE will correctly detect the tabs, but it will still set the indent size to 2 and the tab size to 4. Ideally in this case the indent size should be set to be the same as the tab size.

Tested on Windows 10 using SciTE 4.4.4 and Mercurial tip (994299e3975a).

1 Attachments

Discussion

  • gnombat

    gnombat - 2020-08-22

    I think this can be fixed with a one-line change.

     
  • Neil Hodgson

    Neil Hodgson - 2020-08-23

    Committed as [2c1bbd].

    Credited to "gnombat". If you want a different name in the credits then reply with your preferred name.

     

    Related

    Commit: [2c1bbd]

  • Neil Hodgson

    Neil Hodgson - 2020-09-11
    • status: open --> closed-fixed
     

Log in to post a comment.