Hello Vim developers; there's a set of parentheses in src/drawline.c
unbalanced around the preprocessor conditional for FEAT_DIFF that
prevent compilation with the feature disabled. A patch is attached.
--
Tom Ryder <https://sanctum.geek.nz/>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20200418163812.GA6801%40arjuna.
>From 0a107961e6d95b3ef1e786e9c2e826388f4fb759 Mon Sep 17 00:00:00 2001
From: Tom Ryder <[email protected]>
Date: Sun, 12 Apr 2020 00:35:44 +1200
Subject: [PATCH] Correct compilation error with -diff
With FEAT_DIFF undefined, the parentheses in this block end up
imbalanced in the preprocessed code.
---
src/drawline.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drawline.c b/src/drawline.c
index 1544dae28..8de307aa6 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -3095,9 +3095,9 @@ win_line(
#ifdef FEAT_SYN_HL
if (!(cul_screenline
# ifdef FEAT_DIFF
- && diff_hlf == (hlf_T)0)
+ && diff_hlf == (hlf_T)0
# endif
- )
+ ))
saved_char_attr = char_attr;
else
#endif
--
2.20.1