Commit 1a473483 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in nano.h, if we don't have nanorc support, disable color support, as it

depends on the use of the nanorc


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3779 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 4 deletions
+7 -4
...@@ -88,6 +88,9 @@ CVS code - ...@@ -88,6 +88,9 @@ CVS code -
lines would not be updated properly if the current line was lines would not be updated properly if the current line was
not the first or last line of the edit window. (DLR, found by not the first or last line of the edit window. (DLR, found by
Mike Frysinger) Mike Frysinger)
- nano.h:
- If we don't have nanorc support, disable color support, as it
depends on the use of the nanorc. (DLR)
- winio.c: - winio.c:
display_string() display_string()
- Properly handle buf[start_index]'s being a null terminator. - Properly handle buf[start_index]'s being a null terminator.
......
...@@ -138,9 +138,9 @@ ...@@ -138,9 +138,9 @@
#define getline ngetline #define getline ngetline
#endif #endif
/* If we don't have regex support, turn the color support off, as it /* If we don't have regex or nanorc support, turn the color support off,
* depends on the use of regexes. */ * as it depends on the use of both. */
#ifndef HAVE_REGEX_H #if !defined(HAVE_REGEX_H) || !defined(ENABLE_NANORC)
#undef ENABLE_COLOR #undef ENABLE_COLOR
#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