idanarye / vim-dutyl

Coordinate D tools to work together for you
http://www.vim.org/scripts/script.php?script_id=5003
79 stars 13 forks source link

dfmt weird indentation - depends on length #36

Closed idanarye closed 4 years ago

idanarye commented 7 years ago
void foo() {
    Foo foofoo = {
        foofoofoofoofoo: foofoofoofoo.foofoofoofoo.foofoofoofoo.foofoo,
    };
}

void foo() {
    bar();
}

If I try to indent bar(); I get:

void foo() {
    Foo foofoo = {
        foofoofoofoofoo: foofoofoofoo.foofoofoofoo.foofoofoofoo.foofoo,
    };
}

void foo() {
        bar();
}

If I make the code inside the first foo() shorter it works - so it must have something to do with line wrapping?