mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-02 09:21:40 +02:00
correctly compare new main height to previous
This commit is contained in:
parent
c6cb90e8ca
commit
5f71f87496
@ -489,7 +489,7 @@ func (gui *Gui) layout(g *gocui.Gui) error {
|
|||||||
prevMainView, err := gui.g.View("main")
|
prevMainView, err := gui.g.View("main")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, prevMainHeight := prevMainView.Size()
|
_, prevMainHeight := prevMainView.Size()
|
||||||
heightDiff := mainPanelBottom - prevMainHeight
|
heightDiff := mainPanelBottom - prevMainHeight - 1
|
||||||
if heightDiff > 0 {
|
if heightDiff > 0 {
|
||||||
if manager, ok := gui.viewBufferManagerMap["main"]; ok {
|
if manager, ok := gui.viewBufferManagerMap["main"]; ok {
|
||||||
manager.ReadLines(heightDiff)
|
manager.ReadLines(heightDiff)
|
||||||
|
Loading…
Reference in New Issue
Block a user