diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-01-27 16:50:43 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-01-27 17:11:07 +0100 |
| commit | b325f7e7acbf805baf43a86f3e3c2285bf573ba5 (patch) | |
| tree | 8410ccc2d3e4494c6b06637d7f6eb47d7e89b4a5 /vis.c | |
| parent | 978f3d70b9047608789e40a0b67e91d4fd19e60a (diff) | |
| download | vis-b325f7e7acbf805baf43a86f3e3c2285bf573ba5.tar.gz vis-b325f7e7acbf805baf43a86f3e3c2285bf573ba5.tar.xz | |
vis: make r<Enter> insert a new line
Special case <C-v><Enter> to still insert a carriage return as discussed
in #656 and changed in 2cfc9c867bdfd4cc3ae3246f31cf636633fe1a5f.
Due to limitations of the current implementation <C-v> is not generic,
i.e. combining it as r<C-v><Enter> will not work.
Fixes #765
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1093,7 +1093,7 @@ long vis_keys_codepoint(Vis *vis, const char *keys) { return -1; const int keysym[] = { - TERMKEY_SYM_ENTER, '\r', + TERMKEY_SYM_ENTER, '\n', TERMKEY_SYM_TAB, '\t', TERMKEY_SYM_BACKSPACE, '\b', TERMKEY_SYM_ESCAPE, 0x1b, |
