Starship: Don't show the prefix of the first module after the `line_break`

Created on 1 Oct 2019  路  1Comment  路  Source: starship/starship

Bug Report

Current Behavior

Currently, the first module after the line_break module will have its prefix visible. This makes the new line start with a prefix, which I think looks worse than it would without the prefix:

image

This is what the prompt looks like with just the time module enabled:

[time]
disabled = false

Expected Behavior

Similarly to how the first prefix in the prompt doesn't appear, neither should the first prefix after a line_break module.

Possible Solution

The implementation that hides the first prefix can be found here:
https://github.com/starship/starship/blob/master/starship/src/print.rs#L46-L50

Maybe similar logic should be implemented following after the line_break module is printed.

馃尡 good first issue 馃巸 hacktoberfest 馃悰 bug

Most helpful comment

I'll give this a try.

>All comments

I'll give this a try.

Was this page helpful?
0 / 5 - 0 ratings