aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-03-14 15:01:40 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-04-13 12:00:30 -0400
commit69d019f3bdc7aebbda87cecb0d31913bedf6a87c (patch)
treea28506819680a033adeafda9a315b4f1330539b7 /src
parent7ef2677ca6a57ad464753e02619f2c9a70ce004b (diff)
downloadrneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.tar.gz
rneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.tar.bz2
rneovim-69d019f3bdc7aebbda87cecb0d31913bedf6a87c.zip
pvs/v560: remove redundant line check
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/buffer.c2
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;
}