Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Indent width is set to 4 when atom is started or sometimes when file is just opened, but switching to another tab and back sets it back to 2 #13428

@Goury

Description

@Goury

Prerequisites

Description

So I set my indents for my python to be tabs with width of 2.
So far it worked fine (I was on 0.9–1.2) and then I decided to update to 1.12 and boom! When I start Atom, all the tabs in the active file are 4 things wide. And some times when I open some file.
But, once I click some other tab and back, tabs are shrunk back to width of 2, as it should.

This is a little annoying.

Steps to Reproduce

  1. Set tab width for python to 2 and set it to always use tabs and never use spaces for indentation
  2. Have some python file opened before closing Atom
  3. Close Atom
  4. Start Atom again
  5. ...
  6. Profit!

Expected behavior: tabs width to be always 2

Actual behavior: tabs width is 4 for a moment, then it becomes 2

Versions

Tried with Atoms of 1.12.6, 1.12.7 and 1.13.0-beta8
apm 1.12.9
npm 3.10.5
node 4.4.5
python 2.7.12
git 2.7.4
Up-to-date Ubuntu 16.04 with Unity 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions