mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 03:35:02 -07:00
PVS/V547: expression is always false #10511
This commit is contained in:
parent
78f36fcf8c
commit
5a32db9ad4
@ -3778,7 +3778,7 @@ win_line (
|
||||
* At end of the text line or just after the last character.
|
||||
*/
|
||||
if (c == NUL) {
|
||||
long prevcol = (long)(ptr - line) - (c == NUL);
|
||||
long prevcol = (long)(ptr - line) - 1;
|
||||
|
||||
/* we're not really at that column when skipping some text */
|
||||
if ((long)(wp->w_p_wrap ? wp->w_skipcol : wp->w_leftcol) > prevcol)
|
||||
|
Loading…
Reference in New Issue
Block a user