Skip to content

Commit a3dc5e9

Browse files
committed
patch 7.4.1579
Problem: Missing changes in channel.c Solution: Include the changes.
1 parent 975b527 commit a3dc5e9

2 files changed

Lines changed: 3 additions & 35 deletions

File tree

src/channel.c

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,19 +1285,7 @@ invoke_callback(channel_T *channel, char_u *callback, partial_T *partial,
12851285
&rettv, 2, argv, 0L, 0L, &dummy, TRUE, partial, NULL);
12861286
clear_tv(&rettv);
12871287

1288-
/* If an echo command was used the cursor needs to be put back where
1289-
* it belongs. If highlighting was changed a redraw is needed. */
1290-
update_screen(0);
1291-
setcursor();
1292-
cursor_on();
1293-
out_flush();
1294-
#ifdef FEAT_GUI
1295-
if (gui.in_use)
1296-
{
1297-
gui_update_cursor(TRUE, FALSE);
1298-
gui_mch_flush();
1299-
}
1300-
#endif
1288+
redraw_after_callback();
13011289
}
13021290

13031291
/*
@@ -3024,28 +3012,6 @@ channel_get_timeout(channel_T *channel, int part)
30243012
return channel->ch_part[part].ch_timeout;
30253013
}
30263014

3027-
/*
3028-
* Get a callback from "arg". It can be a Funcref or a function name.
3029-
* When "arg" is zero return an empty string.
3030-
* Return NULL for an invalid argument.
3031-
*/
3032-
static char_u *
3033-
get_callback(typval_T *arg, partial_T **pp)
3034-
{
3035-
if (arg->v_type == VAR_PARTIAL && arg->vval.v_partial != NULL)
3036-
{
3037-
*pp = arg->vval.v_partial;
3038-
return (*pp)->pt_name;
3039-
}
3040-
*pp = NULL;
3041-
if (arg->v_type == VAR_FUNC || arg->v_type == VAR_STRING)
3042-
return arg->vval.v_string;
3043-
if (arg->v_type == VAR_NUMBER && arg->vval.v_number == 0)
3044-
return (char_u *)"";
3045-
EMSG(_("E921: Invalid callback argument"));
3046-
return NULL;
3047-
}
3048-
30493015
static int
30503016
handle_mode(typval_T *item, jobopt_T *opt, ch_mode_T *modep, int jo)
30513017
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static char *(features[]) =
748748

749749
static int included_patches[] =
750750
{ /* Add new patch number below this line */
751+
/**/
752+
1579,
751753
/**/
752754
1578,
753755
/**/

0 commit comments

Comments
 (0)