]> git.lizzy.rs Git - micro.git/commitdiff
Fix openbuffer view creation
authorZachary Yedidia <zyedidia@gmail.com>
Tue, 31 Dec 2019 22:52:55 +0000 (17:52 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Tue, 31 Dec 2019 22:52:55 +0000 (17:52 -0500)
internal/action/bufpane.go

index 71246b24d1bf82218d69d6562c626d6aac4b9fb1..f3a734daf848165c410cd3e3280d5acbe2b2701f 100644 (file)
@@ -225,8 +225,6 @@ func (h *BufPane) OpenBuffer(b *buffer.Buffer) {
        h.BWindow.SetBuffer(b)
        h.Cursor = b.GetActiveCursor()
        h.Resize(h.GetView().Width, h.GetView().Height)
-       v := new(display.View)
-       h.SetView(v)
        h.Relocate()
        // Set mouseReleased to true because we assume the mouse is not being pressed when
        // the editor is opened