aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-08-28 14:59:37 +0900
committererw7 <erw7.github@gmail.com>2019-09-04 13:40:05 +0900
commit2926a36d91325650474ec92804d30ff916ca66ab (patch)
tree2fb94c4efbf301ee5edbd256eef83b8a0d14fc57
parent4f6df65f02b23077b9f146a11af08b9066a707ca (diff)
downloadrneovim-2926a36d91325650474ec92804d30ff916ca66ab.tar.gz
rneovim-2926a36d91325650474ec92804d30ff916ca66ab.tar.bz2
rneovim-2926a36d91325650474ec92804d30ff916ca66ab.zip
[squash] Fix errors when porting
-rw-r--r--src/nvim/option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 07d3561990..c7d2dcb602 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -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.