tweaks: drop a fragment of code that became functionless

This fragment suppressed the cursor when it was on the bottom row of
the terminal and a message was displayed on the status bar.  But since
commit a2a00577 from eight days ago, the cursor will be scrolled off
of the bottom row when there is a message.
This commit is contained in:
Benno Schulenberg 2021-11-22 10:50:38 +01:00
parent b228c9fe6c
commit b2f0721b69

View File

@ -192,9 +192,6 @@ void read_keys_from(WINDOW *win)
if (reveal_cursor && !hide_cursor && (LINES > 1 || lastmessage <= HUSH)) if (reveal_cursor && !hide_cursor && (LINES > 1 || lastmessage <= HUSH))
curs_set(1); curs_set(1);
if (ISSET(ZERO) && openfile->current_y == editwinrows - 1 && lastmessage > HUSH)
curs_set(0);
#ifndef NANO_TINY #ifndef NANO_TINY
if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || LINES == 1) && if (currmenu == MMAIN && (spotlighted || ((ISSET(MINIBAR) || LINES == 1) &&
lastmessage > HUSH && lastmessage > HUSH &&