File tree 2 files changed +3
-26
lines changed
2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
* ` --bugreport ` does not require param ([ #1466 ] ( https://github.com/extrawurst/gitui/issues/1466 ) )
19
19
* ` edit ` -file command shown on commits msg ([ #1461 ] ( https://github.com/extrawurst/gitui/issues/1461 ) )
20
20
* crash on branches popup in small terminal ([ #1470 ] ( https://github.com/extrawurst/gitui/issues/1470 ) )
21
+ * ` edit ` command duplication ([ #1489 ] ( https://github.com/extrawurst/gitui/issues/1489 ) )
21
22
22
23
## [ 0.22.1] - 2022-11-22
23
24
Original file line number Diff line number Diff line change @@ -805,19 +805,7 @@ impl Component for Status {
805
805
) ) ;
806
806
}
807
807
808
- {
809
- out. push ( CommandInfo :: new (
810
- strings:: commands:: edit_item ( & self . key_config ) ,
811
- if focus_on_diff {
812
- true
813
- } else {
814
- self . can_focus_diff ( )
815
- } ,
816
- self . visible || force_all,
817
- ) ) ;
818
-
819
- self . commands_nav ( out, force_all) ;
820
- }
808
+ self . commands_nav ( out, force_all) ;
821
809
822
810
visibility_blocking ( self )
823
811
}
@@ -836,19 +824,7 @@ impl Component for Status {
836
824
}
837
825
838
826
if let Event :: Key ( k) = ev {
839
- return if key_match ( k, self . key_config . keys . edit_file )
840
- && ( self . can_focus_diff ( )
841
- || self . is_focus_on_diff ( ) )
842
- {
843
- if let Some ( ( path, _) ) = self . selected_path ( ) {
844
- self . queue . push (
845
- InternalEvent :: OpenExternalEditor ( Some (
846
- path,
847
- ) ) ,
848
- ) ;
849
- }
850
- Ok ( EventState :: Consumed )
851
- } else if key_match (
827
+ return if key_match (
852
828
k,
853
829
self . key_config . keys . open_commit ,
854
830
) && self . can_commit ( )
You can’t perform that action at this time.
0 commit comments