PVS/V1001: Remove assignment to unused variable

This commit is contained in:
G-flat 2020-10-05 14:16:51 +08:00 committed by GitHub
parent 62c53ac3cf
commit 1a49346319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1531,11 +1531,11 @@ Integer nvim_buf_add_highlight(Buffer buffer,
end_line++;
}
ns_id = extmark_set(buf, ns_id, 0,
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;
return src_id;
}
/// Clears namespaced objects (highlights, extmarks, virtual text) from