mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
Address review r2
This commit is contained in:
@@ -606,8 +606,7 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer
|
||||
if (line < 0) {
|
||||
api_set_error(err, kErrorTypeValidation, "line value outside range");
|
||||
goto error;
|
||||
}
|
||||
else if (line > buf->b_ml.ml_line_count) {
|
||||
} else if (line > buf->b_ml.ml_line_count) {
|
||||
if (strict) {
|
||||
api_set_error(err, kErrorTypeValidation, "line value outside range");
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user