tweaks: reduce the scope of a variable, and reshuffle a declaration
parent
0442eef95b
commit
8835c0d486
|
@ -75,8 +75,6 @@ bool more_than_one = FALSE;
|
||||||
bool also_the_last = FALSE;
|
bool also_the_last = FALSE;
|
||||||
/* Whether indenting/commenting should include the last line of
|
/* Whether indenting/commenting should include the last line of
|
||||||
* the marked region. */
|
* the marked region. */
|
||||||
bool is_shorter;
|
|
||||||
/* Whether a row's text is narrower than the screen's width. */
|
|
||||||
|
|
||||||
int didfind = 0;
|
int didfind = 0;
|
||||||
/* Whether the last search found something. */
|
/* Whether the last search found something. */
|
||||||
|
|
|
@ -55,8 +55,6 @@ extern bool more_than_one;
|
||||||
|
|
||||||
extern bool also_the_last;
|
extern bool also_the_last;
|
||||||
|
|
||||||
extern bool is_shorter;
|
|
||||||
|
|
||||||
extern int didfind;
|
extern int didfind;
|
||||||
|
|
||||||
extern int controlleft, controlright;
|
extern int controlleft, controlright;
|
||||||
|
|
|
@ -47,6 +47,8 @@ static int digit_count = 0;
|
||||||
/* How many digits of a three-digit character code we've eaten. */
|
/* How many digits of a three-digit character code we've eaten. */
|
||||||
static bool waiting_mode = TRUE;
|
static bool waiting_mode = TRUE;
|
||||||
/* Whether getting a character will wait for a key to be pressed. */
|
/* Whether getting a character will wait for a key to be pressed. */
|
||||||
|
static bool reveal_cursor = FALSE;
|
||||||
|
/* Whether the cursor should be shown when waiting for input. */
|
||||||
static int statusblank = 0;
|
static int statusblank = 0;
|
||||||
/* The number of keystrokes left before we blank the status bar. */
|
/* The number of keystrokes left before we blank the status bar. */
|
||||||
#ifdef USING_OLD_NCURSES
|
#ifdef USING_OLD_NCURSES
|
||||||
|
@ -55,8 +57,8 @@ static bool seen_wide = FALSE;
|
||||||
#endif
|
#endif
|
||||||
static bool has_more = FALSE;
|
static bool has_more = FALSE;
|
||||||
/* Whether the current line has more text after the displayed part. */
|
/* Whether the current line has more text after the displayed part. */
|
||||||
static bool reveal_cursor = FALSE;
|
static bool is_shorter = TRUE;
|
||||||
/* Whether the cursor should be shown when waiting for input. */
|
/* Whether a row's text is narrower than the screen's width. */
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
static bool recording = FALSE;
|
static bool recording = FALSE;
|
||||||
/* Whether we are in the process of recording a macro. */
|
/* Whether we are in the process of recording a macro. */
|
||||||
|
|
Loading…
Reference in New Issue