mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
Fix small softwrap bug
This commit is contained in:
parent
df564e1b8b
commit
1350deae56
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user