Fix moves within the same column (broken since 2206).

This commit is contained in:
sqweek 2007-10-02 22:38:42 +08:00
parent f99d66b076
commit 62da446cc1
1 changed files with 5 additions and 1 deletions

View File

@ -289,7 +289,11 @@ horiz:
resize_frame(f->aprev, f->aprev->r);
}
if (fw->ra != f->area) {
if (f->aprev || f->anext) {
remove_frame(f);
f->area = fw->ra;
insert_frame(fw->fp, f);
} else if (f->area != fw->ra) {
detach_from_area(f);
attach_to_area(fw->ra, f);
}