Skip to content

Commit 3784a77

Browse files
committed
✨ feat: "INSERT" text when in insert mode
1 parent acf1dc0 commit 3784a77

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/popups/conventional_commit.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,16 @@ impl DrawableComponent for ConventionalCommitPopup {
633633
"Type of commit"
634634
},
635635
self.theme.title(true),
636-
)),
636+
))
637+
.title(if self.is_insert {
638+
Span::styled(
639+
"[INSERT]",
640+
self.theme.title(true),
641+
)
642+
.into_right_aligned_line()
643+
} else {
644+
"".into()
645+
}),
637646
area,
638647
);
639648

0 commit comments

Comments
 (0)