From ccceab9659f7f180a4d8910aab51463a6515931a Mon Sep 17 00:00:00 2001 From: G-flat <63449095+G-flat@users.noreply.github.com> Date: Fri, 2 Oct 2020 07:24:40 +0800 Subject: PVS/V1001: Correct returned variable typo --- src/nvim/api/buffer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/nvim/api/buffer.c') diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 3171b00e28..14ea4f7520 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++; } - 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; + 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 ns_id; } /// Clears namespaced objects (highlights, extmarks, virtual text) from -- cgit