tweaks: improve two comments, and exclude two unneeded prototypes
And declare two more variables as 'static', like all its neighbors.
This commit is contained in:
parent
6fde7d8a51
commit
162c213e7b
@ -1607,8 +1607,8 @@ void process_a_keystroke(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we have a command, or if there aren't any other key codes waiting,
|
/* If there are gathered bytes and we have a command or no other key codes
|
||||||
* it's time to insert the gathered bytes into the edit buffer. */
|
* are waiting, it's time to insert these bytes into the edit buffer. */
|
||||||
if (depth > 0 && (function || waiting_keycodes() == 0)) {
|
if (depth > 0 && (function || waiting_keycodes() == 0)) {
|
||||||
puddle[depth] = '\0';
|
puddle[depth] = '\0';
|
||||||
inject(puddle, depth);
|
inject(puddle, depth);
|
||||||
|
|||||||
@ -281,9 +281,8 @@ void absorb_character(int input, functionptrtype function)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we got a shortcut, or if there aren't any other keystrokes waiting,
|
/* If there are gathered bytes and we have a command or no other key codes
|
||||||
* it's time to insert all characters in the input buffer (if not empty)
|
* are waiting, it's time to insert these bytes into the answer. */
|
||||||
* into the answer, and then clear the input buffer. */
|
|
||||||
if (depth > 0 && (function || waiting_keycodes() == 0)) {
|
if (depth > 0 && (function || waiting_keycodes() == 0)) {
|
||||||
puddle[depth] = '\0';
|
puddle[depth] = '\0';
|
||||||
inject_into_answer(puddle, depth);
|
inject_into_answer(puddle, depth);
|
||||||
|
|||||||
@ -579,8 +579,10 @@ linestruct *line_from_number(ssize_t number);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Most functions in winio.c. */
|
/* Most functions in winio.c. */
|
||||||
|
#ifndef NANO_TINY
|
||||||
void record_macro(void);
|
void record_macro(void);
|
||||||
void run_macro(void);
|
void run_macro(void);
|
||||||
|
#endif
|
||||||
void reserve_space_for(size_t newsize);
|
void reserve_space_for(size_t newsize);
|
||||||
size_t waiting_keycodes(void);
|
size_t waiting_keycodes(void);
|
||||||
#ifdef ENABLE_NANORC
|
#ifdef ENABLE_NANORC
|
||||||
|
|||||||
@ -62,9 +62,9 @@ static bool linger_after_escape = FALSE;
|
|||||||
/* Whether to give ncurses some time to get the next code. */
|
/* Whether to give ncurses some time to get the next code. */
|
||||||
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. */
|
||||||
size_t from_x = 0;
|
static size_t from_x = 0;
|
||||||
/* From where in the relevant line the current row is drawn. */
|
/* From where in the relevant line the current row is drawn. */
|
||||||
size_t till_x = 0;
|
static size_t till_x = 0;
|
||||||
/* Until where in the relevant line the current row is drawn. */
|
/* Until where in the relevant line the current row is drawn. */
|
||||||
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. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user