Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Possible copy paste error?
- X-seq: zsh-workers 51491
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Possible copy paste error?
- Date: Tue, 28 Feb 2023 14:37:23 +0100
- Archived-at: <https://zsh.org/workers/51491>
- List-id: <zsh-workers.zsh.org>
Coverity noticed that this first branch of the if statement has "meta"
added to all the variable names except this zlecs at the end, should it?
(I'm asking the same question)
---
Src/Zle/zle_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index fa0868245a..5046ee8784 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;
}
}
--
2.38.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author