1
0
forked from aniani/vim

updated for version 7.3.346

Problem:    It's hard to test netbeans commands.
Solution:   Process netbeans commands after :sleep. (Xavier de Gaye)
This commit is contained in:
Bram Moolenaar
2011-10-20 21:58:34 +02:00
parent 6cc00c75c1
commit e3cc6d4223
4 changed files with 31 additions and 5 deletions

View File

@@ -8205,6 +8205,12 @@ do_sleep(msec)
{
ui_delay(msec - done > 1000L ? 1000L : msec - done, TRUE);
ui_breakcheck();
#ifdef FEAT_NETBEANS_INTG
/* Process the netbeans messages that may have been received in the
* call to ui_breakcheck() when the GUI is in use. This may occur when
* running a test case. */
netbeans_parse_messages();
#endif
}
}

View File

@@ -14,6 +14,13 @@
* which are *between* characters, whereas vim uses line number
* and column number which are *on* characters.
* See ":help netbeans-protocol" for explanation.
*
* The Netbeans messages are received and queued in the gui event loop, or in
* the select loop when Vim runs in a terminal. These messages are processed
* by netbeans_parse_messages() which is invoked in the idle loop when Vim is
* waiting for user input. The function netbeans_parse_messages() is also
* called from the ":sleep" command, to allow the execution of test cases that
* may not invoke the idle loop.
*/
#include "vim.h"

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
346,
/**/
345,
/**/