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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user