mirror of
https://github.com/neovim/neovim.git
synced 2025-11-21 01:26:29 +00:00
Merge pull request #17347 from zeertzjq/screen-pvs
refactor(PVS/V547): p == NULL is always false
This commit is contained in:
@@ -3753,9 +3753,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
|||||||
}
|
}
|
||||||
c = wp->w_p_lcs_chars.tab1;
|
c = wp->w_p_lcs_chars.tab1;
|
||||||
p = xmalloc(len + 1);
|
p = xmalloc(len + 1);
|
||||||
if (p == NULL) {
|
|
||||||
n_extra = 0;
|
|
||||||
} else {
|
|
||||||
memset(p, ' ', len);
|
memset(p, ' ', len);
|
||||||
p[len] = NUL;
|
p[len] = NUL;
|
||||||
xfree(p_extra_free);
|
xfree(p_extra_free);
|
||||||
@@ -3782,7 +3779,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
|||||||
n_extra -= vcol_off;
|
n_extra -= vcol_off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int vc_saved = vcol_off;
|
int vc_saved = vcol_off;
|
||||||
|
|||||||
Reference in New Issue
Block a user