Hi,
This is not exactly a bug report, but rather a report of what I find to be a
counterintuitive but evidently planned feature.
If I make a mapping containing a search command (/, #, n, N) and then
execute the mapping and the search ends inside a fold, the fold does not
open as it does when doing the search 'manually'.
Here is the code in normal_search (normal.c) in the Vim source which
produces this behavior:
#ifdef FEAT_FOLDING
if (cap->oap->op_type == OP_NOP && (fdo_flags & FDO_SEARCH) && KeyTyped)
foldOpenCursor();
#endif
My question is why is this check for KeyTyped desirable? Why shouldn't I
want the fold to open when executing in a mapping?
Thanks,
Ephraim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---