diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-14 15:01:40 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-04-13 12:00:30 -0400 |
commit | 69d019f3bdc7aebbda87cecb0d31913bedf6a87c (patch) | |
tree | a28506819680a033adeafda9a315b4f1330539b7 /src/nvim/api/buffer.c | |
parent | 7ef2677ca6a57ad464753e02619f2c9a70ce004b (diff) | |
download | rneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.tar.gz rneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.tar.bz2 rneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.zip |
pvs/v560: remove redundant line check
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 7578f0fbc5..b345dcaccd 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1402,7 +1402,7 @@ Integer nvim_buf_add_highlight(Buffer buffer, 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 return src_id; } |