2009/8/7 Jean-Philippe Bernardy <[email protected]>:
>
> Fri Aug 7 17:09:32 EDT 2009 [email protected]
> * fix a memory leak; also improve the style somewhat
> Ignore-this: 12b9966fd67f3ebf9a2e5bc48a7b98ef
>
> M ./src/Yi/UI/Vty.hs -4 +9
The "fix" was meant to stop a leak where every window hangs onto the
last version of that window. I see you changed this in a later
revision but what was the original problem? Are you using heap
profiling?
178,179c180,184
< apply win = fix $ \self -> win {
< getRegion = getRegionImpl self (configUI $ config ui) e
cols (height self)
---
>
> apply win = win {
> -- Note that it is possible to pass the emptyEditor here,
> because
> -- the fields used in getRegionImpl won't make a
> difference on the layout.
> getRegion = getRegionImpl win (configUI $ config ui) emptyEditor
> cols (height win)
--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---