Skip to content

Commit

Permalink
changelog and notes for #1506
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Aug 12, 2023
1 parent bf31f20 commit 798f990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* fix symlink support for configuration files [[@TheBlackSheep3](https://github.com/TheBlackSheep3)] ([#1751](https://github.com/extrawurst/gitui/issues/1751))
* fix expansion of `~` in `commit.template` ([#1745](https://github.com/extrawurst/gitui/pull/1745))
* fix hunk (un)staging/reset for # of context lines != 3 ([#1746](https://github.com/extrawurst/gitui/issues/1746))
* fix delay when opening external editor ([#1506](https://github.com/extrawurst/gitui/issues/1506))

## [0.23.0] - 2022-06-19

Expand Down
5 changes: 4 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::{
};

static FAST_POLL_DURATION: Duration = Duration::from_millis(100);
static SLOW_POLL_DURATION: Duration = Duration::from_millis(1000);
static SLOW_POLL_DURATION: Duration = Duration::from_millis(10000);

///
#[derive(Clone, Copy, Debug)]
Expand Down Expand Up @@ -123,6 +123,9 @@ impl Input {
}

tx.send(InputEvent::Input(e))?;
//Note: right after an input event we might have a reason to stop
// polling (external editor opening) so lets do a quick poll until the next input
// this fixes https://github.com/extrawurst/gitui/issues/1506
poll_duration = FAST_POLL_DURATION;
} else {
poll_duration = SLOW_POLL_DURATION;
Expand Down

0 comments on commit 798f990

Please sign in to comment.