Skip to content

Commit

Permalink
Fix bug, where font::Bitmap wouldn't add size to config string
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Jan 2, 2016
1 parent e09c32e commit 7c49710
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/terminal/config/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ impl TrueType {

impl ConfigPart for Bitmap {
fn to_config_str(&self) -> String {
format!("{}: {}{}{}{}{}{}{}{};", self.origin, escape_config_string(&self.path),
format!("{}: {}{}{}{}{}{}{}{}{};", self.origin, escape_config_string(&self.path),
match self.size {
None => "".to_string(),
Some(ref size) => format!(", size={}", size),
},
match self.resize {
None => "".to_string(),
Some(ref resize) => format!(", resize={}", resize),
Expand Down

0 comments on commit 7c49710

Please sign in to comment.