mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
fix(rprompt): print when plain
This commit is contained in:
parent
4bab59fbd8
commit
9a6fbb6f52
|
@ -36,7 +36,7 @@ func (e *Engine) string() string {
|
|||
}
|
||||
|
||||
func (e *Engine) canWriteRightBlock(rprompt bool) (int, bool) {
|
||||
if rprompt && (len(e.rprompt) == 0 || e.Plain) {
|
||||
if rprompt && (len(e.rprompt) == 0) {
|
||||
return 0, false
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,7 @@ func (e *Engine) renderBlock(block *Block, cancelNewline bool) {
|
|||
space -= length
|
||||
|
||||
if space > 0 {
|
||||
prompt += strings.Repeat(" ", space-length)
|
||||
prompt += strings.Repeat(" ", space)
|
||||
}
|
||||
|
||||
prompt += text
|
||||
|
|
Loading…
Reference in a new issue