From 27e75379a6a5c89bda7a8c1a08664d5b00a9b420 Mon Sep 17 00:00:00 2001 From: scbj Date: Mon, 20 Jan 2025 13:50:05 +0100 Subject: [PATCH] fixed stack/bookmarks path style leeking into punctuation style --- src/bookmarks.rs | 2 +- src/stack.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bookmarks.rs b/src/bookmarks.rs index d27d935..188ed27 100644 --- a/src/bookmarks.rs +++ b/src/bookmarks.rs @@ -116,7 +116,7 @@ impl Bookmarks { ); 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 { buffer.push_str(&format!("{}{}{}{}\n", name, padding, separator, path)); diff --git a/src/stack.rs b/src/stack.rs index 178fd6d..3fc816f 100644 --- a/src/stack.rs +++ b/src/stack.rs @@ -49,7 +49,7 @@ impl Stack { &config.styles.stack_separator_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 { buffer.push_str(&format!("{}{}{}{}\n", number, padding, separator, path)); } else {