tweaks: elide a variable that is confusing and has just one use case
parent
addac49465
commit
9c9de85afb
|
@ -80,8 +80,6 @@ linestruct *pletion_line = NULL;
|
||||||
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 hide_cursor = FALSE;
|
|
||||||
/* Whether to suppress the cursor when highlighting a search match. */
|
|
||||||
|
|
||||||
char *answer = NULL;
|
char *answer = NULL;
|
||||||
/* The answer string used by the status-bar prompt. */
|
/* The answer string used by the status-bar prompt. */
|
||||||
|
|
|
@ -469,7 +469,6 @@ void show_help(void)
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
spotlighted = FALSE;
|
spotlighted = FALSE;
|
||||||
hide_cursor = FALSE;
|
|
||||||
|
|
||||||
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
|
if (bracketed_paste || kbinput == BRACKETED_PASTE_MARKER) {
|
||||||
beep();
|
beep();
|
||||||
|
|
|
@ -1531,7 +1531,6 @@ void process_a_keystroke(void)
|
||||||
input = get_kbinput(edit, VISIBLE);
|
input = get_kbinput(edit, VISIBLE);
|
||||||
|
|
||||||
lastmessage = VACUUM;
|
lastmessage = VACUUM;
|
||||||
hide_cursor = FALSE;
|
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (input == KEY_WINCH)
|
if (input == KEY_WINCH)
|
||||||
|
|
|
@ -53,7 +53,6 @@ extern message_type lastmessage;
|
||||||
extern linestruct *pletion_line;
|
extern linestruct *pletion_line;
|
||||||
|
|
||||||
extern bool also_the_last;
|
extern bool also_the_last;
|
||||||
extern bool hide_cursor;
|
|
||||||
|
|
||||||
extern char *answer;
|
extern char *answer;
|
||||||
|
|
||||||
|
|
|
@ -327,8 +327,6 @@ int findnextstr(const char *needle, bool whole_word_only, int modus,
|
||||||
spotlighted = TRUE;
|
spotlighted = TRUE;
|
||||||
light_from_col = xplustabs();
|
light_from_col = xplustabs();
|
||||||
light_to_col = wideness(line->data, found_x + found_len);
|
light_to_col = wideness(line->data, found_x + found_len);
|
||||||
if (!ISSET(SHOW_CURSOR))
|
|
||||||
hide_cursor = TRUE;
|
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -189,7 +189,8 @@ void read_keys_from(WINDOW *win)
|
||||||
/* Before reading the first keycode, display any pending screen updates. */
|
/* Before reading the first keycode, display any pending screen updates. */
|
||||||
doupdate();
|
doupdate();
|
||||||
|
|
||||||
if (reveal_cursor && !hide_cursor && (LINES > 1 || lastmessage <= HUSH))
|
if (reveal_cursor && (!spotlighted || ISSET(SHOW_CURSOR || currmenu == MSPELL)) &&
|
||||||
|
(LINES > 1 || lastmessage <= HUSH))
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
|
Loading…
Reference in New Issue