File tree Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
24
24
### Fixed
25
25
- keep diff line selection after staging/unstaging/discarding ([ #583 ] ( https://github.com/extrawurst/gitui/issues/583 ) )
26
+ - fix pull deadlocking when aborting credentials input ([ #586 ] ( https://github.com/extrawurst/gitui/issues/586 ) )
26
27
27
28
## [ 0.12.0] - 2020-03-03
28
29
Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ impl Component for CredComponent {
105
105
if let Event :: Key ( e) = ev {
106
106
if e == self . key_config . exit_popup {
107
107
self . hide ( ) ;
108
+ return Ok ( true ) ;
108
109
}
110
+
109
111
if self . input_username . event ( ev) ?
110
112
|| self . input_password . event ( ev) ?
111
113
{
@@ -139,6 +141,7 @@ impl Component for CredComponent {
139
141
}
140
142
}
141
143
}
144
+
142
145
return Ok ( true ) ;
143
146
}
144
147
Ok ( false )
Original file line number Diff line number Diff line change @@ -257,9 +257,10 @@ impl Component for PullComponent {
257
257
if self . visible {
258
258
if let Event :: Key ( _) = ev {
259
259
if self . input_cred . is_visible ( ) {
260
- if self . input_cred . event ( ev) ? {
261
- return Ok ( true ) ;
262
- } else if self . input_cred . get_cred ( ) . is_complete ( )
260
+ self . input_cred . event ( ev) ?;
261
+
262
+ if self . input_cred . get_cred ( ) . is_complete ( )
263
+ || !self . input_cred . is_visible ( )
263
264
{
264
265
self . fetch_from_remote ( Some (
265
266
self . input_cred . get_cred ( ) . clone ( ) ,
Original file line number Diff line number Diff line change @@ -253,9 +253,10 @@ impl Component for PushComponent {
253
253
if self . visible {
254
254
if let Event :: Key ( e) = ev {
255
255
if self . input_cred . is_visible ( ) {
256
- if self . input_cred . event ( ev) ? {
257
- return Ok ( true ) ;
258
- } else if self . input_cred . get_cred ( ) . is_complete ( )
256
+ self . input_cred . event ( ev) ?;
257
+
258
+ if self . input_cred . get_cred ( ) . is_complete ( )
259
+ || !self . input_cred . is_visible ( )
259
260
{
260
261
self . push_to_remote (
261
262
Some ( self . input_cred . get_cred ( ) . clone ( ) ) ,
Original file line number Diff line number Diff line change @@ -227,9 +227,10 @@ impl Component for PushTagsComponent {
227
227
if self . visible {
228
228
if let Event :: Key ( e) = ev {
229
229
if self . input_cred . is_visible ( ) {
230
- if self . input_cred . event ( ev) ? {
231
- return Ok ( true ) ;
232
- } else if self . input_cred . get_cred ( ) . is_complete ( )
230
+ self . input_cred . event ( ev) ?;
231
+
232
+ if self . input_cred . get_cred ( ) . is_complete ( )
233
+ || !self . input_cred . is_visible ( )
233
234
{
234
235
self . push_to_remote ( Some (
235
236
self . input_cred . get_cred ( ) . clone ( ) ,
You can’t perform that action at this time.
0 commit comments