summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2023-02-28 14:35:52 +0100
committerMikael Magnusson <mikachu@gmail.com>2023-02-28 14:56:06 +0100
commit86a5278f9f5ab516ff2b099d64af2d5567983b5a (patch)
tree4def856e7002bafb723c706e0191760ccf58b5cc
parentb3980ecc583bfe34db46d47538448af1a953095e (diff)
downloadzsh-86a5278f9f5ab516ff2b099d64af2d5567983b5a.tar.gz
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.
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ba598e4c..3fc73e413 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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;
}
}