51491: Check should use zlemetacs instead of zlecs

Coverity noticed that this first branch of the if statement has "meta"
added to all the variable names except this zlecs at the end, so change
it to match.
This commit is contained in:
Mikael Magnusson 2023-02-28 14:35:52 +01:00
parent b3980ecc58
commit 86a5278f9f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2023-02-28 Mikael Magnusson <mikachu@gmail.com>
* 51491: Src/Zle/zle_utils.c: Check should use zlemetacs instead
of zlecs
2023-02-26 Bart Schaefer <schaefer@zsh.org>
* 51464: Util/printdefines: utility to interpret zsh.h constants

View file

@ -799,7 +799,7 @@ spaceinline(int ct)
if (rhp->start_meta - sub >= zlemetacs) {
rhp->start_meta += ct;
}
if (rhp->end_meta - sub >= zlemetacs && (!predisplaylen || zlecs)) {
if (rhp->end_meta - sub >= zlemetacs && (!predisplaylen || zlemetacs)) {
rhp->end_meta += ct;
}
}