From 1695463347ea089e5647433e8970db27f032ed9b Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 6 Jul 2017 21:47:11 +0200
Subject: [PATCH] tweaks: correct two conditions for conditional compilation

---
 src/nano.h  | 2 +-
 src/proto.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nano.h b/src/nano.h
index fa38de14..77420221 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -164,7 +164,7 @@ typedef enum {
 #ifndef DISABLE_WRAPPING
     SPLIT_BEGIN, SPLIT_END,
 #endif
-#ifndef DISABLE_COMMENT
+#ifdef ENABLE_COMMENT
     COMMENT, UNCOMMENT, PREFLIGHT,
 #endif
     JOIN, PASTE, INSERT, ENTER, OTHER
diff --git a/src/proto.h b/src/proto.h
index 1e15d053..f2246fa7 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -540,7 +540,7 @@ RETSIGTYPE cancel_command(int signal);
 bool execute_command(const char *command);
 void discard_until(const undo *thisitem, openfilestruct *thefile);
 void add_undo(undo_type action);
-#ifndef DISABLE_COMMENT
+#ifdef ENABLE_COMMENT
 void update_comment_undo(ssize_t lineno);
 #endif
 void update_undo(undo_type action);
-- 
GitLab