aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2018-04-15 21:32:26 +0300
committerZyX <kp-pav@yandex.ru>2018-04-15 21:32:26 +0300
commit3b32e717d91934f2906c99269949efa9d88e82c8 (patch)
treea83c0368f326643ac37f6a8d13093cd95b500fac /src/nvim/ops.c
parentcb3230776e75ce6adf0ce34f6da4b139e22318a2 (diff)
downloadrneovim-3b32e717d91934f2906c99269949efa9d88e82c8.tar.gz
rneovim-3b32e717d91934f2906c99269949efa9d88e82c8.tar.bz2
rneovim-3b32e717d91934f2906c99269949efa9d88e82c8.zip
message: Fix PVS/V547: c is never equal to KS_ZERO
Since `c` there is a result of evaluating `TO_SPECIAL` macros it may be only one of the following three things: 1. K_SPECIAL 2. K_ZERO (note: not KS_ZERO) 3. negative integer resulting from evaluating TERMCAP2KEY macro. All variants here are negative and thus fail next !IS_SPECIAL(c) check (negative is special). If `c` was really NUL it would fall into the `!IS_SPECIAL(c)` block and use whatever character is third in `<80>{a}{b}` combo. For `<Nul>` it is X (`<80><ff>X`).
Diffstat (limited to 'src/nvim/ops.c')
0 files changed, 0 insertions, 0 deletions