Skip to content

Commit

Permalink
fixed #5
Browse files Browse the repository at this point in the history
  • Loading branch information
reujab committed Feb 2, 2019
1 parent 76e6b12 commit 34dbf75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "silver"
version = "1.0.4"
version = "1.0.5"
authors = ["reujab <reujab@gmail.com>"]

description = "A cross-shell customizable powerline-like prompt with icons"
Expand Down
2 changes: 2 additions & 0 deletions src/sh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ pub fn escape_background(shell: &str, color: &str) -> String {
"zsh" => {
if HEX.is_match(&color) {
format!("%{{\x1b[48;2;{}m%}}", escape_hex(color))
} else if color == "none" {
format!("%k")
} else {
format!("%K{{{}}}", color)
}
Expand Down

0 comments on commit 34dbf75

Please sign in to comment.