diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2023-02-28 14:35:52 +0100 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2023-02-28 14:56:06 +0100 |
commit | 86a5278f9f5ab516ff2b099d64af2d5567983b5a (patch) | |
tree | 4def856e7002bafb723c706e0191760ccf58b5cc /Src/Zle/zle_utils.c | |
parent | b3980ecc583bfe34db46d47538448af1a953095e (diff) | |
download | zsh-86a5278f9f5ab516ff2b099d64af2d5567983b5a.tar.gz zsh-86a5278f9f5ab516ff2b099d64af2d5567983b5a.tar.xz zsh-86a5278f9f5ab516ff2b099d64af2d5567983b5a.zip |
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.
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r-- | Src/Zle/zle_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 9ce91049c..454a877a9 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -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; } } |