diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-04-11 12:13:09 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-11 12:13:09 +0200 |
| commit | 3b7757793a46beac6e9c31ebce595cd3c41bac77 (patch) | |
| tree | f8ba8337996adf26a518d132df0419088abb1818 /config.def.h | |
| parent | c56e523ce74dd48d8c18f4dce3e8881310613015 (diff) | |
| download | vis-3b7757793a46beac6e9c31ebce595cd3c41bac77.tar.gz vis-3b7757793a46beac6e9c31ebce595cd3c41bac77.tar.xz | |
Remove global mode state
Once again show mode in window status bar.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index f83918e..087b678 100644 --- a/config.def.h +++ b/config.def.h @@ -224,7 +224,7 @@ static void vis_mode_operator_leave(Mode *new) { static void vis_mode_operator_input(const char *str, size_t len) { /* invalid operator */ action_reset(&vis->action); - switchmode_to(mode_prev); + switchmode_to(vis->mode_prev); } static KeyBinding vis_operator_options[] = { @@ -504,7 +504,7 @@ static void vis_mode_prompt_input(const char *str, size_t len) { static void vis_mode_prompt_enter(Mode *old) { if (old->isuser && old != &vis_modes[VIS_MODE_PROMPT]) - mode_before_prompt = old; + vis->mode_before_prompt = old; } static void vis_mode_prompt_leave(Mode *new) { |
