[squash] Fix errors when porting

This commit is contained in:
erw7
2019-08-28 14:59:37 +09:00
parent 4f6df65f02
commit 2926a36d91

View File

@@ -3798,7 +3798,8 @@ static void set_option_sctx_idx(int opt_idx, int opt_flags, sctx_T script_ctx)
int both = (opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0;
int indir = (int)options[opt_idx].indir;
const LastSet last_set = { .script_ctx =
{ script_ctx.sc_sid, sourcing_lnum }, current_channel_id };
{ script_ctx.sc_sid, script_ctx.sc_lnum + sourcing_lnum },
current_channel_id };
// Remember where the option was set. For local options need to do that
// in the buffer or window structure.