diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 14:47:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 14:47:48 +0200 |
| commit | 0d448b0d2802a044a77f5546ecd98efb5045adca (patch) | |
| tree | 8405c88199a2cd46f26c24043896f89691278fe1 /config.def.h | |
| parent | a5e0c7efb08460e577e9ff0997991e5adfe6c473 (diff) | |
| download | vis-0d448b0d2802a044a77f5546ecd98efb5045adca.tar.gz vis-0d448b0d2802a044a77f5546ecd98efb5045adca.tar.xz | |
Add a few comments about the subtleties of mode switching
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 1377707..57e076d 100644 --- a/config.def.h +++ b/config.def.h @@ -388,6 +388,8 @@ static KeyBinding vis_prompt_mode[] = { }; static void vis_prompt_leave(Mode *new) { + /* prompt mode may be left for operator mode when editing the command prompt. + * for example during Ctrl+w / delete_word. don't hide the prompt in this case */ if (new != &vis_modes[VIS_MODE_OPERATOR]) editor_prompt_hide(vis); } |
