diff options
| author | ZyX <kp-pav@yandex.ru> | 2017-07-04 17:42:10 +0300 | 
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2017-07-04 18:37:02 +0300 | 
| commit | 28f6bd822b26ae92701ca553d29693d35864753f (patch) | |
| tree | 51a9fa5626652b54e510ccdc4a4fdd703292becb /src | |
| parent | af1f17f1dcd68ce75cfe06a0ebcb3b34d85f98bf (diff) | |
| download | rneovim-28f6bd822b26ae92701ca553d29693d35864753f.tar.gz rneovim-28f6bd822b26ae92701ca553d29693d35864753f.tar.bz2 rneovim-28f6bd822b26ae92701ca553d29693d35864753f.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/terminal.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 1882f263db..099f49f09b 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -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' | 
