mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-06 07:00:24 +09:00
Fix small glitch with splits
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user