diff options
Diffstat (limited to 'src/Finder.zig')
| -rw-r--r-- | src/Finder.zig | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Finder.zig b/src/Finder.zig index 0be40c24..3744e5d1 100644 --- a/src/Finder.zig +++ b/src/Finder.zig @@ -84,17 +84,13 @@ fn open(f: *Finder, p: *Pardes) ?usize { p.col_serial[c] = 0; p.ncol += 1; f.serial = layout.columnSerial(p, c); - // A narrower column wraps long tags onto more rows: those rows back - // from the panes with rows to spare, shared out again only where that - // is not enough, and where nothing holds every minimum there is no - // finder, as Newcol is refused. - layout.restoreMinimaFrom(p, &before, &before_min); - for (0..p.ncol) |k| if (k != c and layout.squeezed(p, k, &before, &before_min) and !layout.shareColumn(p, k)) { - layout.dropColumnUnannounced(p, c); + // Where nothing holds every minimum there is no finder, as Newcol is + // refused. + if (!layout.keepColumn(p, c, &before, &before_min)) { f.serial = 0; layout.compute(p); return null; - }; + } layout.noteColumn(p, "newcol", f.serial); return c; } |
