diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 18:37:29 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-28 20:09:14 +0100 |
| commit | 30e9673fdb22905df853ef07b3826fa19b28831c (patch) | |
| tree | 1b5fba8cdd110228df92972660eab026ab1e879a /main.c | |
| parent | d6a2d5bea9364dfecefecef084671b2c7fc1dc8a (diff) | |
| download | vis-30e9673fdb22905df853ef07b3826fa19b28831c.tar.gz vis-30e9673fdb22905df853ef07b3826fa19b28831c.tar.xz | |
vis: improve switching to prompt mode
A call to vis_prompt_show will now automatically switch to prompt
mode. Within the prompt leave/enter handlers the focused window
(vis->win) will still point to the document window not the one
referring to the prompt.
The selection marks '< and '> are now only updated when a visual
mode is left.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1410,13 +1410,11 @@ static const char *insert_register(Vis *vis, const char *keys, const Arg *arg) { static const char *prompt_search(Vis *vis, const char *keys, const Arg *arg) { vis_prompt_show(vis, arg->s, ""); - vis_mode_switch(vis, VIS_MODE_PROMPT); return keys; } static const char *prompt_cmd(Vis *vis, const char *keys, const Arg *arg) { vis_prompt_show(vis, ":", arg->s); - vis_mode_switch(vis, VIS_MODE_PROMPT); return keys; } |
