0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0683: cannot specify a time for :echowindow

Problem:    Cannot specify a time for :echowindow.
Solution:   A count can be used to specify the display time. Add
            popup_findecho().
This commit is contained in:
Bram Moolenaar
2022-10-07 14:31:45 +01:00
parent cf3d0eaf47
commit bdc09a18fc
21 changed files with 147 additions and 25 deletions

View File

@@ -1879,7 +1879,21 @@ generate_MULT_EXPR(cctx_T *cctx, isntype_T isn_type, int count)
if ((isn = generate_instr_drop(cctx, isn_type, count)) == NULL)
return FAIL;
isn->isn_arg.number = count;
return OK;
}
/*
* Generate an ISN_ECHOWINDOW instruction
*/
int
generate_ECHOWINDOW(cctx_T *cctx, int count, long time)
{
isn_T *isn;
if ((isn = generate_instr_drop(cctx, ISN_ECHOWINDOW, count)) == NULL)
return FAIL;
isn->isn_arg.echowin.ewin_count = count;
isn->isn_arg.echowin.ewin_time = time;
return OK;
}