mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
terminal: Silence -V666 error: value not correspond with string length
Looks like calling this function below with 4-character first strings made PVS think that OPT_LOCAL (it is equal to 4) is a string length.
This commit is contained in:
parent
af1f17f1dc
commit
28f6bd822b
@ -229,7 +229,7 @@ Terminal *terminal_open(TerminalOptions opts)
|
||||
rv->invalid_start = 0;
|
||||
rv->invalid_end = opts.height;
|
||||
refresh_screen(rv, curbuf);
|
||||
set_option_value("buftype", 0, "terminal", OPT_LOCAL);
|
||||
set_option_value("buftype", 0, "terminal", OPT_LOCAL); // -V666
|
||||
|
||||
// Default settings for terminal buffers
|
||||
curbuf->b_p_ma = false; // 'nomodifiable'
|
||||
|
Loading…
Reference in New Issue
Block a user