diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-12-08 10:54:20 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-12-08 10:54:20 +0100 |
| commit | 8e27737bd4e9ff1c275a0cb439bfe2280ffa3f62 (patch) | |
| tree | 8ea5ca3b893102ff3f9a891b5d738e0440f8ac2f /main.c | |
| parent | 7da804505d38c98ae66ec3524e190df7e68936bb (diff) | |
| download | vis-8e27737bd4e9ff1c275a0cb439bfe2280ffa3f62.tar.gz vis-8e27737bd4e9ff1c275a0cb439bfe2280ffa3f62.tar.xz | |
vis: let <C-c> behave as <Escape> if only one selection exists
This should allow the :-command prompt to be closed with <C-c><C-c>
(from insert mode) or <C-c> (from normal mode).
Fix #608
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1484,7 +1484,7 @@ static const char *selections_remove_column(Vis *vis, const char *keys, const Ar if (column >= max) column = max - 1; if (view_selections_count(view) == 1) { - vis_mode_switch(vis, VIS_MODE_NORMAL); + vis_keys_feed(vis, "<Escape>"); return keys; } |
