From 48be3f4c4086b3714f276fbfb5496449ca76e859 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 30 Sep 2020 11:27:30 +0200 Subject: [PATCH] fix: adjust theme alignment --- Themes/material.json | 1 + Themes/robbyrussel.json | 1 + segment_exit_test.go | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Themes/material.json b/Themes/material.json index c59d9635aea5..a5af76b9616e 100644 --- a/Themes/material.json +++ b/Themes/material.json @@ -9,6 +9,7 @@ "style": "plain", "foreground": "#ffffff", "properties": { + "prefix": "", "text": "<#C591E8>❭<#69FF94>❭" } }, diff --git a/Themes/robbyrussel.json b/Themes/robbyrussel.json index 828019264742..588a65356008 100644 --- a/Themes/robbyrussel.json +++ b/Themes/robbyrussel.json @@ -9,6 +9,7 @@ "style": "plain", "foreground": "#98C379", "properties": { + "prefix": "", "text": "→", "postfix": "" } diff --git a/segment_exit_test.go b/segment_exit_test.go index 40db2c766590..13e1a0f6212f 100644 --- a/segment_exit_test.go +++ b/segment_exit_test.go @@ -35,7 +35,7 @@ func TestExitWriterStandardCode(t *testing.T) { env: env, props: props, } - assert.Equal(t, "XSIGHUP", e.getFormattedText()) + assert.Equal(t, "SIGHUP", e.getFormattedText()) } func TestExitWriterNonStandardCode(t *testing.T) { @@ -49,7 +49,7 @@ func TestExitWriterNonStandardCode(t *testing.T) { env: env, props: props, } - assert.Equal(t, "X5001", e.getFormattedText()) + assert.Equal(t, "5001", e.getFormattedText()) } func TestGetMeaningFromExitCode(t *testing.T) {