Skip to content

Commit

Permalink
merge branch closes window (#882)
Browse files Browse the repository at this point in the history
fixes #876
  • Loading branch information
andrewpollack authored Aug 30, 2021
1 parent 361e1d8 commit 3a1c1a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- added scrollbar to revlog [[@ashvin021](https://github.com/ashvin021)] ([#868](https://github.com/extrawurst/gitui/issues/868))

## Fixed
- fix merging branch not closing branch window [[@andrewpollack](https://github.com/andrewpollack)] ([#876](https://github.com/extrawurst/gitui/issues/876))
- fix commit msg being broken inside tag list ([#871](https://github.com/extrawurst/gitui/issues/871))
- fix filetree file content not showing tabs correctly ([#874](https://github.com/extrawurst/gitui/issues/874))

Expand Down
3 changes: 2 additions & 1 deletion src/components/branchlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,13 @@ impl BranchListComponent {
!self.branches.is_empty()
}

fn merge_branch(&self) -> Result<()> {
fn merge_branch(&mut self) -> Result<()> {
if let Some(branch) =
self.branches.get(usize::from(self.selection))
{
sync::merge_branch(CWD, &branch.name)?;

self.hide();
self.queue.push(InternalEvent::Update(NeedsUpdate::ALL));
}

Expand Down

0 comments on commit 3a1c1a6

Please sign in to comment.