Merge pull request #11870 from QnJ1c2kNCg/master

clang analyzer: Dead assignment `ns_id` in nvim_buf_add_highlight
This commit is contained in:
Björn Linse 2020-02-14 16:00:49 +01:00 committed by GitHub
commit 61c98a1cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1420,10 +1420,10 @@ Integer nvim_buf_add_highlight(Buffer buffer,
end_line++;
}
ns_id = extmark_add_decoration(buf, ns_id, hlg_id,
(int)line, (colnr_T)col_start,
end_line, (colnr_T)col_end,
VIRTTEXT_EMPTY);
extmark_add_decoration(buf, ns_id, hlg_id,
(int)line, (colnr_T)col_start,
end_line, (colnr_T)col_end,
VIRTTEXT_EMPTY);
return src_id;
}