mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0579: Coverity warns for unused value
Problem: Coverity warns for unused value. Solution: Change order and use "else if".
This commit is contained in:
@@ -5491,13 +5491,14 @@ mch_job_start(char **argv, job_T *job, jobopt_T *options, int is_terminal)
|
|||||||
term = getenv("TERM");
|
term = getenv("TERM");
|
||||||
#endif
|
#endif
|
||||||
// Use 'term' or $TERM if it starts with "xterm", otherwise fall
|
// Use 'term' or $TERM if it starts with "xterm", otherwise fall
|
||||||
// back to "xterm".
|
// back to "xterm" or "xterm-color".
|
||||||
if (term == NULL || *term == NUL || STRNCMP(term, "xterm", 5) != 0)
|
if (term == NULL || *term == NUL || STRNCMP(term, "xterm", 5) != 0)
|
||||||
{
|
{
|
||||||
if (t_colors > 16)
|
|
||||||
term = "xterm-color";
|
|
||||||
if (t_colors >= 256)
|
if (t_colors >= 256)
|
||||||
|
// TODO: should we check this name is supported?
|
||||||
term = "xterm-256color";
|
term = "xterm-256color";
|
||||||
|
else if (t_colors > 16)
|
||||||
|
term = "xterm-color";
|
||||||
else
|
else
|
||||||
term = "xterm";
|
term = "xterm";
|
||||||
}
|
}
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
579,
|
||||||
/**/
|
/**/
|
||||||
578,
|
578,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user