Skip to content

Indents are added too eagerly #38

@injust

Description

@injust

Consider this config:

[foo]
	one = "one"

Assuming there is an empty trailing newline, press enter. The new line will be indented, which is probably not what you want.

Now try copying the entire snippet and pasting it underneath to duplicate it. The entire snippet will be indented one level, resulted in:

[foo]
	one = "one"
	[foo]
		one = "one"

No matter how many empty trailing newlines you add, this will still happen. This notably differs from auto-indentation issues when pasting for other languages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions