From 5657fe6ac7d75cac48a386f55e429b716f8d7623 Mon Sep 17 00:00:00 2001 From: Chris Chou Date: Fri, 6 Oct 2017 09:47:37 +1300 Subject: #632: Indicate `Rust` or `(rust)` for rust_version segment only if icon is unavailable --- test/segments/rust_version.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/segments/rust_version.spec') diff --git a/test/segments/rust_version.spec b/test/segments/rust_version.spec index 49b06bcf..c945f8ae 100755 --- a/test/segments/rust_version.spec +++ b/test/segments/rust_version.spec @@ -19,7 +19,7 @@ function testRust() { alias rustc=mockRust POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(rust_version) - assertEquals "%K{208} %F{black}Rust 0.4.1a-alpha %k%F{208}%f " "$(build_left_prompt)" + assertEquals "%K{208} %F{black%}Rust%f %F{black}0.4.1a-alpha %k%F{208}%f " "$(build_left_prompt)" unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS unalias rustc -- cgit v1.2.3