mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
feedback: refuse the --constantshow toggle (M-C) on a one-row terminal
When the terminal has just one row, there is no room to constantly show
the position of the cursor, so do not allow the user to switch it on.
This fixes https://savannah.gnu.org/bugs/?61445.
Bug existed since version 5.8, commit 36ffb5f0
.
This commit is contained in:
parent
0363703073
commit
f42821293e
@ -1113,7 +1113,7 @@ void toggle_this(int flag)
|
||||
return;
|
||||
|
||||
if (flag == CONSTANT_SHOW) {
|
||||
if (ISSET(ZERO)) {
|
||||
if (ISSET(ZERO) || LINES == 1) {
|
||||
statusline(AHEM, _("Not possible in barless mode"));
|
||||
TOGGLE(flag);
|
||||
} else if (!ISSET(MINIBAR))
|
||||
|
Loading…
Reference in New Issue
Block a user