mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 12:58:16 +00:00
pvs/v560: remove redundant line check
This commit is contained in:
@@ -1402,7 +1402,7 @@ Integer nvim_buf_add_highlight(Buffer buffer,
|
|||||||
|
|
||||||
uint64_t ns_id = src2ns(&src_id);
|
uint64_t ns_id = src2ns(&src_id);
|
||||||
|
|
||||||
if (!(0 <= line && line < buf->b_ml.ml_line_count)) {
|
if (!(line < buf->b_ml.ml_line_count)) {
|
||||||
// safety check, we can't add marks outside the range
|
// safety check, we can't add marks outside the range
|
||||||
return src_id;
|
return src_id;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user