On Fri, Oct 28, 2011 at 11:03 PM, Xavier de Gaye wrote: > I use loadview and mkview with autocommands. It happens quite often > that upon returning to a buffer, a fold becomes unexpectedly closed. > In that case, whatever fold I attempt to open in this buffer next, it > will be closed after I leave the buffer and on returning to it again. > ... > The patch fixes the problem by never closing a leaf fold (since they > are already closed) and not reopening a parent fold after its leaves > have been taken care of, when it is an open fold (since it is already > open, reopening the parent fold was unfortunately hiding the bug).
The patch is not correct. For a given folding state in a window, when you start building the folds after an initial 'zM', then the folds are correct (with the above patch). For the same given folding state, when you start building the folds after an initial 'zR', then some folds are incorrectly open. I will look into it, unless someone else is working on it. -- Xavier Les Chemins de Lokoti: http://lokoti.alwaysdata.net -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
