aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-09-06 23:21:15 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-09-06 23:21:15 +0200
commit0a52f918d01a298236a2edf7a005548edf34a8fb (patch)
tree2e070ab43368ed45146cb62cd11011997684b0ea /config.def.h
parent6f532df9641d59a7d168f68715a95609ffe2a253 (diff)
downloadvis-0a52f918d01a298236a2edf7a005548edf34a8fb.tar.gz
vis-0a52f918d01a298236a2edf7a005548edf34a8fb.tar.xz
ui: differentiate between Ctrl-J and enter
Thus enter no longer creates new cursors, use CTRL-j instead. Closes #69
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index fdd20ae..1516762 100644
--- a/config.def.h
+++ b/config.def.h
@@ -104,7 +104,8 @@ static KeyBinding vis_movements[] = {
{ { NONE('j') }, movement, { .i = MOVE_LINE_DOWN } },
{ { CONTROL('J') }, movement, { .i = MOVE_LINE_DOWN } },
{ { CONTROL('N') }, movement, { .i = MOVE_LINE_DOWN } },
- { { KEY(ENTER) }, movement, { .i = MOVE_LINE_DOWN } },
+ { { NONE('\n') }, movement, { .i = MOVE_LINE_DOWN } },
+ { { NONE('\r') }, movement, { .i = MOVE_LINE_DOWN } },
{ { NONE('g'), NONE('j') }, movement, { .i = MOVE_SCREEN_LINE_DOWN } },
{ { NONE('g'), KEY(DOWN) }, movement, { .i = MOVE_SCREEN_LINE_DOWN } },
{ { NONE('^') }, movement, { .i = MOVE_LINE_START } },
@@ -513,7 +514,8 @@ static KeyBinding vis_mode_readline[] = {
static KeyBinding vis_mode_prompt[] = {
{ { KEY(BACKSPACE) }, prompt_backspace,{ .s = NULL } },
- { { KEY(ENTER) }, prompt_enter, { NULL } },
+ { { NONE('\n') }, prompt_enter, { NULL } },
+ { { NONE('\r') }, prompt_enter, { NULL } },
{ { CONTROL('J') }, prompt_enter, { NULL } },
{ { KEY(UP) }, prompt_up, { NULL } },
{ { KEY(DOWN) }, prompt_down, { NULL } },