vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit e8063265cd632eb6336791eea59c141ffddfc452
parent 62fd5ede8ad67a5870e61c406d0edc9bb24a983a
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed,  4 Nov 2015 18:01:36 +0100

vis: fix definition of space motion

We do not instruct libtermkey to specially report the space key.
Hence it is not reported as <Space> but simply as a " " (0x20).

Closes #89

Diffstat:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -24,7 +24,7 @@ static KeyBinding vis_movements[] = { { "<Backspace>", ALIAS("h") }, { "<C-h>", ALIAS("<Backspace>") }, { "l", ACTION(CURSOR_CHAR_NEXT) }, - { "<Space>", ALIAS("l") }, + { " ", ALIAS("l") }, { "k", ACTION(CURSOR_LINE_UP) }, { "C-p", ALIAS("k") }, { "j", ACTION(CURSOR_LINE_DOWN) },