mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2245: Vim9: return value of winrestcmd() cannot be executed
Problem: Vim9: return value of winrestcmd() cannot be executed. Solution: Put colons before each range. (closes #7571)
This commit is contained in:
@@ -1010,9 +1010,9 @@ f_winrestcmd(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
ga_init2(&ga, (int)sizeof(char), 70);
|
||||
FOR_ALL_WINDOWS(wp)
|
||||
{
|
||||
sprintf((char *)buf, "%dresize %d|", winnr, wp->w_height);
|
||||
sprintf((char *)buf, ":%dresize %d|", winnr, wp->w_height);
|
||||
ga_concat(&ga, buf);
|
||||
sprintf((char *)buf, "vert %dresize %d|", winnr, wp->w_width);
|
||||
sprintf((char *)buf, "vert :%dresize %d|", winnr, wp->w_width);
|
||||
ga_concat(&ga, buf);
|
||||
++winnr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user