Text_preview: fixed placement of the null character
Dir_preview: don't waste memory
Window: reserve space for m_trees