Commit 4fc16848 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Adjusting the whitespace after the previous change, and adding a comment.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5496 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 11 additions and 12 deletions
+11 -12
2015-12-18 Benno Schulenberg <bensberg@justemail.net> 2015-12-18 Benno Schulenberg <bensberg@justemail.net>
* src/color.c (color_init): Use less #ifdefs. * src/color.c (color_init): Use less #ifdefs, and adjust indentation.
2015-12-11 Benno Schulenberg <bensberg@justemail.net> 2015-12-11 Benno Schulenberg <bensberg@justemail.net>
* doc/syntax/Makefile.am: Add missing autoconf and nftables syntaxes. * doc/syntax/Makefile.am: Add missing autoconf and nftables syntaxes.
......
...@@ -116,8 +116,8 @@ void color_init(void) ...@@ -116,8 +116,8 @@ void color_init(void)
using_defaults = (use_default_colors() != ERR); using_defaults = (use_default_colors() != ERR);
#endif #endif
for (; tmpcolor != NULL; /* For each coloring expression, initialize the color pair. */
tmpcolor = tmpcolor->next) { for (; tmpcolor != NULL; tmpcolor = tmpcolor->next) {
foreground = tmpcolor->fg; foreground = tmpcolor->fg;
background = tmpcolor->bg; background = tmpcolor->bg;
...@@ -128,7 +128,6 @@ void color_init(void) ...@@ -128,7 +128,6 @@ void color_init(void)
background = COLOR_BLACK; background = COLOR_BLACK;
init_pair(tmpcolor->pairnum, foreground, background); init_pair(tmpcolor->pairnum, foreground, background);
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "init_pair(): fg = %hd, bg = %hd\n", foreground, background); fprintf(stderr, "init_pair(): fg = %hd, bg = %hd\n", foreground, background);
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment