Christian wrote: > Hi Bram! > > On So, 04 Jan 2015, Bram Moolenaar wrote: > > > Christian wrote: > > > > > On Fr, 02 Jan 2015, Bram Moolenaar wrote: > > > > > > > Problem is that while typing this will open lots of folds before the one > > > > you actually want to see. > > > > > > Do you fear, that this might slow down Vim too much? > > > > It will open folds that the user might not want opened. > > > > > > Temporarily opening one fold would be better, > > > > but might be a bit difficult to implement. > > > > > > Like temporarily setting foldclose setting? > > > > I don't think that changing an option is a good solution, it may have > > unexpected side effects. > > Here is a patch, that temporarily resets the foldclose setting. This > avoids leaving some folds open. As far as my testing have shown, this > closes all matches after moving the cursor away, even when getting an > interrupt. > > > Yes. Would require redrawing from the matching line to the end of the > > window, and again when the match changes position. This happens anyway > > when the text scrolls more than a few lines. > > One might miss some context in that case.
Thanks, I'll put it in the todo list. -- Never go to the toilet in a paperless office. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
