diff options
author | G-flat <63449095+G-flat@users.noreply.github.com> | 2020-10-05 14:16:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 14:16:51 +0800 |
commit | 1a49346319cafc5b8879cf6c7ce56c057467b4ee (patch) | |
tree | 2cb7114a2343a6bb662de8f6c92ab0cc466fb39a /src/nvim/api/buffer.c | |
parent | 62c53ac3cf74e0b2c727fbd63c5504a15a1c1541 (diff) | |
download | rneovim-1a49346319cafc5b8879cf6c7ce56c057467b4ee.tar.gz rneovim-1a49346319cafc5b8879cf6c7ce56c057467b4ee.tar.bz2 rneovim-1a49346319cafc5b8879cf6c7ce56c057467b4ee.zip |
PVS/V1001: Remove assignment to unused variable
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 0399227bab..3171b00e28 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1531,11 +1531,11 @@ Integer nvim_buf_add_highlight(Buffer buffer, end_line++; } - ns_id = extmark_set(buf, ns_id, 0, - (int)line, (colnr_T)col_start, - end_line, (colnr_T)col_end, - decoration_hl(hl_id), kExtmarkUndo); - return (Integer)ns_id; + extmark_set(buf, ns_id, 0, + (int)line, (colnr_T)col_start, + end_line, (colnr_T)col_end, + decoration_hl(hl_id), kExtmarkUndo); + return src_id; } /// Clears namespaced objects (highlights, extmarks, virtual text) from |