~vcs-imports/nano/master

« back to all changes in this revision

Viewing changes to src/nano.c

  • Committer: Benno Schulenberg
  • Date: 2023-11-25 16:07:05 UTC
  • Revision ID: git-v1:f5bc261944722d8b0938ace56287d8910895f40d
general: let the constant-show toggle override the zero-interface mode

When the user hits the M-C toggle while option --zero is in effect,
instead of complaining "Not possible", do what the user probably
tries to achieve: cancel `zero` mode and switch on `constantshow`.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1086
1086
                        draw_all_subwindows();
1087
1087
                        break;
1088
1088
                case CONSTANT_SHOW:
1089
 
                        if (ISSET(ZERO) || LINES == 1) {
1090
 
                                statusline(AHEM, _("Not possible"));
 
1089
                        if (LINES == 1) {
 
1090
                                statusline(AHEM, _("Too tiny"));
1091
1091
                                TOGGLE(flag);
 
1092
                        } else if (ISSET(ZERO)) {
 
1093
                                SET(CONSTANT_SHOW);
 
1094
                                toggle_this(ZERO);
1092
1095
                        } else if (!ISSET(MINIBAR))
1093
1096
                                wipe_statusbar();
1094
1097
                        return;