Skip to content

Vim indentation broken with multiline function calls in struct definitions. #14195

Closed
@mahkoh

Description

@mahkoh

Consider the following code:

fn main() {
    let x = X {
        a: 1,
        b: fffff(1,
                 2),
        c: 1,
    };
    let _ = x;
}

Opening a new line while on the c-line puts the cursor here:

    let x = X {
        a: 1,
        b: fffff(1,
                 2),
        c: 1,
                 X
    };

cc @chris-morgan

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