mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
screen: Silence “buffer underflow” warning
This commit is contained in:
parent
a65867542d
commit
7cf4b0ac06
@ -2447,7 +2447,7 @@ win_line (
|
|||||||
} else {
|
} else {
|
||||||
/* Long line, use only the last SPWORDLEN bytes. */
|
/* Long line, use only the last SPWORDLEN bytes. */
|
||||||
nextlinecol = v - SPWORDLEN;
|
nextlinecol = v - SPWORDLEN;
|
||||||
memmove(nextline, line + nextlinecol, SPWORDLEN);
|
memmove(nextline, line + nextlinecol, SPWORDLEN); // -V512
|
||||||
nextline_idx = SPWORDLEN + 1;
|
nextline_idx = SPWORDLEN + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user