mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-31 13:20:29 +00:00
Fix small glitch with splits
This commit is contained in:
parent
f01dc89171
commit
271b127f79
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ func (v *View) Resize(w, h int) {
|
|||
v.width = int(float32(w) * float32(v.widthPercent) / 100)
|
||||
// We subtract 1 for the statusline
|
||||
v.height = int(float32(h) * float32(v.heightPercent) / 100)
|
||||
if w%2 == 1 && v.x > 1 && v.widthPercent < 100 {
|
||||
if w%2 == 0 && v.x > 1 && v.widthPercent < 100 {
|
||||
v.width++
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue