From 6ea410e14e777b642bcd55ba60822050f4072da4 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 26 Jun 2005 22:32:51 +0000 Subject: [PATCH] add missing int -> bool conversion git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2768 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/nano.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6869dfbc..2441b286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -252,6 +252,8 @@ CVS code - - Add macro charset(), a wrapper that calls memset(). (DLR) - Readd #defines for the isblank() and iswblank() equivalents. (DLR) + - In the colortype struct, make bright a bool instead of an int, + for consistency. (DLR) - proto.h: - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the do_find_bracket() prototype. (DLR) diff --git a/src/nano.h b/src/nano.h index eb8a115e..0720b8b7 100644 --- a/src/nano.h +++ b/src/nano.h @@ -247,7 +247,7 @@ typedef struct rcoption { typedef struct colortype { int fg; /* Foreground color. */ int bg; /* Background color. */ - int bright; /* Is this color A_BOLD? */ + bool bright; /* Is this color A_BOLD? */ int pairnum; /* Color pair number used for this * foreground/background. */ regex_t start; /* Start (or all) of the regex -- 2.39.5