mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-25 11:04:04 -08:00
parent
29a89f4265
commit
b871f33882
|
@ -74,6 +74,11 @@ func (e *Engine) canWriteRightBlock(length int, rprompt bool) (int, bool) {
|
|||
|
||||
canWrite := availableSpace >= promptBreathingRoom
|
||||
|
||||
// reset the available space when we can't write so we can fill the line
|
||||
if !canWrite {
|
||||
availableSpace = consoleWidth - length
|
||||
}
|
||||
|
||||
return availableSpace, canWrite
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue