Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae1af08

Browse files
committed
🐛 fix: bug when 1 res != open commit
1 parent 5c92e33 commit ae1af08

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

‎src/popups/conventional_commit.rs‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ impl Component for ConventionalCommitPopup {
730730

731731
visibility_blocking(self)
732732
}
733+
733734
fn event(
734735
&mut self,
735736
event: &crossterm::event::Event,
@@ -757,7 +758,8 @@ impl Component for ConventionalCommitPopup {
757758
{
758759
self.next_step();
759760

760-
if commit.more_info().len() == 1 {
761+
if self.query_results_more_info.len() == 1
762+
{
761763
self.validate_escape(commit);
762764
}
763765
}
@@ -794,7 +796,19 @@ impl Component for ConventionalCommitPopup {
794796
{
795797
self.seleted_commit_type =
796798
Some(self.query_results_type[idx]);
797-
self.next_step();
799+
#[cfg(feature = "gitmoji")]
800+
{
801+
self.next_step();
802+
803+
if self.query_results_more_info.len() == 1
804+
{
805+
self.validate_escape(
806+
self.query_results_type[idx],
807+
);
808+
}
809+
}
810+
#[cfg(not(feature = "gitmoji"))]
811+
self.validate_escape(commit);
798812
}
799813
}
800814
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /