Commit 1e718cec authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: reshuffle a couple of lines, to put similar things together

No related merge requests found
Showing with 4 additions and 14 deletions
+4 -14
...@@ -51,11 +51,6 @@ int margin = 0; ...@@ -51,11 +51,6 @@ int margin = 0;
int editwincols = -1; int editwincols = -1;
/* The number of usable columns in the edit window: COLS - margin. */ /* The number of usable columns in the edit window: COLS - margin. */
#ifdef ENABLE_COLOR
bool have_palette = FALSE;
/* Whether the colors for the current syntax have been initialized. */
#endif
bool suppress_cursorpos = FALSE; bool suppress_cursorpos = FALSE;
/* Should we skip constant position display for current keystroke? */ /* Should we skip constant position display for current keystroke? */
...@@ -184,6 +179,8 @@ syntaxtype *syntaxes = NULL; ...@@ -184,6 +179,8 @@ syntaxtype *syntaxes = NULL;
/* The global list of color syntaxes. */ /* The global list of color syntaxes. */
char *syntaxstr = NULL; char *syntaxstr = NULL;
/* The color syntax name specified on the command line. */ /* The color syntax name specified on the command line. */
bool have_palette = FALSE;
/* Whether the colors for the current syntax have been initialized. */
#endif #endif
bool refresh_needed = FALSE; bool refresh_needed = FALSE;
......
...@@ -326,7 +326,6 @@ void load_history(void) ...@@ -326,7 +326,6 @@ void load_history(void)
history = &replace_history; history = &replace_history;
else else
history = &execute_history; history = &execute_history;
} }
fclose(hisfile); fclose(hisfile);
......
...@@ -43,10 +43,6 @@ extern bool as_an_at; ...@@ -43,10 +43,6 @@ extern bool as_an_at;
extern int margin; extern int margin;
extern int editwincols; extern int editwincols;
#ifdef ENABLE_COLOR
extern bool have_palette;
#endif
extern bool suppress_cursorpos; extern bool suppress_cursorpos;
extern message_type lastmessage; extern message_type lastmessage;
...@@ -106,9 +102,6 @@ extern openfilestruct *firstfile; ...@@ -106,9 +102,6 @@ extern openfilestruct *firstfile;
#ifndef NANO_TINY #ifndef NANO_TINY
extern char *matchbrackets; extern char *matchbrackets;
#endif
#ifndef NANO_TINY
extern char *whitespace; extern char *whitespace;
extern int whitespace_len[2]; extern int whitespace_len[2];
#endif #endif
...@@ -124,7 +117,7 @@ extern char *quotestr; ...@@ -124,7 +117,7 @@ extern char *quotestr;
extern regex_t quotereg; extern regex_t quotereg;
extern int quoterc; extern int quoterc;
extern char *quoteerr; extern char *quoteerr;
#endif /* !ENABLE_JUSTIFY */ #endif
extern char *word_chars; extern char *word_chars;
...@@ -148,6 +141,7 @@ extern char *alt_speller; ...@@ -148,6 +141,7 @@ extern char *alt_speller;
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
extern syntaxtype *syntaxes; extern syntaxtype *syntaxes;
extern char *syntaxstr; extern char *syntaxstr;
extern bool have_palette;
#endif #endif
extern bool refresh_needed; extern bool refresh_needed;
......
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