1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

more consistent rendering

This commit is contained in:
Jesse Duffield
2021-11-03 08:23:47 +11:00
parent 06ca71e955
commit 9a9e3d506d
3 changed files with 54 additions and 53 deletions

View File

@ -8,8 +8,8 @@ import (
"github.com/jesseduffield/lazygit/pkg/gui/style"
)
const mergeSymbol = "⏣"
const commitSymbol = "⎔"
const MergeSymbol = '⏣'
const CommitSymbol = '◯'
type cellType int
@ -35,9 +35,9 @@ func (cell *Cell) render(writer io.StringWriter) {
case CONNECTION:
adjustedFirst = first
case COMMIT:
adjustedFirst = commitSymbol
adjustedFirst = string(CommitSymbol)
case MERGE:
adjustedFirst = mergeSymbol
adjustedFirst = string(MergeSymbol)
}
var rightStyle *style.TextStyle