doomemacs / doomemacs/core

Magit buffer shrinks the vertical window size during operations

Open
#5,838 3 comments 1 reaction 0 assignees View on GitHub
:tools magit re:interface
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

When I perform an operation in magit, I expect the window size to remain the same.

### What actually happened?

If I make a commit, the transient window seems to shrink the buffer window permanently. Something isn't properly restoring the window height.

Before:
![image](https://user-images.githubusercontent.com/522123/143569731-a579b1fc-5c0c-4731-9408-59ef12f7f58a.png)

I push 'c' and this happens:
![image](https://user-images.githubusercontent.com/522123/143569781-68d37b48-ed59-4bf5-b8ef-35bfd7f5942c.png)

From this point on the window is permanently shrunk even after finishing making the commit. It should restore back to normal.

### Describe your attempts to resolve the issue

I haven't spent much time debugging this. I wanted to create a bug report for anyone else who is running into this. When I get some time I can investigate further. I did try doom-debug-mode but no errors.

### Steps to reproduce

1. Open a project with a git repo.
2. Create a split window SPC-w-s.
3. Open magit in the top window.
4. Try any operation, such as 'c', it should shrink the window incorrectly.

### System Information

https://pastebin.com/LZKDu160

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.