diff options
author | notomo <notomo.motono@gmail.com> | 2019-11-26 00:50:30 +0900 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-11-25 16:50:30 +0100 |
commit | 4a77df2e518a51ffd5a5fe311424b4b5305009a7 (patch) | |
tree | 759b67bb670652b298bd85361cd6807d22c3d190 /src/nvim/api/buffer.c | |
parent | fd5710ae9a3bcbc0f9cbb71de9e39253350ff09c (diff) | |
download | rneovim-4a77df2e518a51ffd5a5fe311424b4b5305009a7.tar.gz rneovim-4a77df2e518a51ffd5a5fe311424b4b5305009a7.tar.bz2 rneovim-4a77df2e518a51ffd5a5fe311424b4b5305009a7.zip |
[RFC] extmark: fix E315 in nvim_buf_set_extmark (#11449)
extmark: need to use buf instead of curbuf
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 448ade5e4b..8f5718d97e 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1207,7 +1207,7 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer id, api_set_error(err, kErrorTypeValidation, "line value outside range"); return 0; } else if (line < buf->b_ml.ml_line_count) { - len = STRLEN(ml_get_buf(curbuf, (linenr_T)line+1, false)); + len = STRLEN(ml_get_buf(buf, (linenr_T)line+1, false)); } if (col == -1) { |