File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -730,6 +730,7 @@ impl Component for ConventionalCommitPopup {
730
730
731
731
visibility_blocking ( self )
732
732
}
733
+
733
734
fn event (
734
735
& mut self ,
735
736
event : & crossterm:: event:: Event ,
@@ -757,7 +758,8 @@ impl Component for ConventionalCommitPopup {
757
758
{
758
759
self . next_step ( ) ;
759
760
760
- if commit. more_info ( ) . len ( ) == 1 {
761
+ if self . query_results_more_info . len ( ) == 1
762
+ {
761
763
self . validate_escape ( commit) ;
762
764
}
763
765
}
@@ -794,7 +796,19 @@ impl Component for ConventionalCommitPopup {
794
796
{
795
797
self . seleted_commit_type =
796
798
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) ;
798
812
}
799
813
}
800
814
}
You can’t perform that action at this time.
0 commit comments