diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 52f975ca..e5e2bba4 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -596,6 +596,12 @@ func (v *View) HandleEvent(event tcell.Event) { if relocate { v.Relocate() + // We run relocate again because there's a bug with relocating with softwrap + // when for example you jump to the bottom of the buffer and it tries to + // calculate where to put the topline so that the bottom line is at the bottom + // of the terminal and it runs into problems with visual lines vs real lines. + // This is (hopefully) a temporary solution + v.Relocate() } }