Ben Fritz wrote:
> Test case:
>
> gvim -N -u NONE -i NONE
>
> :autocmd cursorhold * call system("echo foo") | let test=test+1 | echo
> test
> :let test=0
>
>
> Then do nothing, and you will see Vim count upward with a period of
> 'updatecount'
>
> Is this desired but unexpected behavior, or a bug?
>
> If the former, please update the CursorHold help text.
This happens on MS-Windows, because the system() triggers a Focus
switch, which results in some key handling.
This patch should fix it for the situation that I found had the problem.
There might be another situation, depending on the context.
*** ../vim-7.2.022/src/normal.c Sat Sep 6 16:44:06 2008
--- src/normal.c Sat Sep 27 13:03:34 2008
***************
*** 1132,1138 ****
out_flush();
#endif
#ifdef FEAT_AUTOCMD
! did_cursorhold = FALSE;
#endif
State = NORMAL;
--- 1132,1139 ----
out_flush();
#endif
#ifdef FEAT_AUTOCMD
! if (ca.cmdchar != K_IGNORE)
! did_cursorhold = FALSE;
#endif
State = NORMAL;
--
# echo reboot >universe
# chmod +x universe
# ./universe
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---