fixed stack/bookmarks path style leeking into punctuation style
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ impl Bookmarks {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let mut path = apply_format(path.to_str().unwrap(), &config.styles.bookmarks_path_style);
|
let mut path = apply_format(path.to_str().unwrap(), &config.styles.bookmarks_path_style);
|
||||||
path = path.replace('/', &format!("{}/{}{}", config.styles.bookmarks_punct_style, RESET_SEQ, &config.styles.bookmarks_path_style));
|
path = path.replace('/', &format!("{}{}/{}{}", RESET_SEQ, config.styles.bookmarks_punct_style, RESET_SEQ, &config.styles.bookmarks_path_style));
|
||||||
|
|
||||||
if config.format.align_separators {
|
if config.format.align_separators {
|
||||||
buffer.push_str(&format!("{}{}{}{}\n", name, padding, separator, path));
|
buffer.push_str(&format!("{}{}{}{}\n", name, padding, separator, path));
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ impl Stack {
|
|||||||
&config.styles.stack_separator_style,
|
&config.styles.stack_separator_style,
|
||||||
);
|
);
|
||||||
let mut path = apply_format(item.to_str().unwrap(), &config.styles.stack_path_style);
|
let mut path = apply_format(item.to_str().unwrap(), &config.styles.stack_path_style);
|
||||||
path = path.replace('/', &format!("{}/{}{}", config.styles.stack_punct_style, RESET_SEQ, config.styles.stack_path_style));
|
path = path.replace('/', &format!("{}{}/{}{}", RESET_SEQ, config.styles.stack_punct_style, RESET_SEQ, config.styles.stack_path_style));
|
||||||
if config.format.align_separators {
|
if config.format.align_separators {
|
||||||
buffer.push_str(&format!("{}{}{}{}\n", number, padding, separator, path));
|
buffer.push_str(&format!("{}{}{}{}\n", number, padding, separator, path));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user