aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/vis.c b/vis.c
index 829b994..3a6a3a3 100644
--- a/vis.c
+++ b/vis.c
@@ -887,6 +887,8 @@ static void switchmode_to(Mode *new_mode) {
mode_prev = mode;
//fprintf(stderr, "%s -> %s\n", mode_prev->name, new_mode->name);
mode = new_mode;
+ if (mode == config->mode || (mode->name && mode->name[0] == '-'))
+ statusbar(vis->win);
if (mode->enter)
mode->enter(mode_prev);
// TODO display mode name somewhere?
@@ -1070,10 +1072,6 @@ static bool exec_command(char *cmdline) {
return true;
}
-/* default editor configuration to use */
-static Config *config = &editors[0];
-
-
typedef struct Screen Screen;
static struct Screen {
int w, h;