[RFC] extmark: fix E315 in nvim_buf_set_extmark (#11449)

extmark: need to use buf instead of curbuf
This commit is contained in:
notomo
2019-11-26 00:50:30 +09:00
committed by Björn Linse
parent fd5710ae9a
commit 4a77df2e51
2 changed files with 9 additions and 1 deletions

View File

@@ -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) {