vis

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

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

commit 462273dbffbc8f30f607e7c01007e4e8e608a1ff
parent 6d9be7524d1bb7db769b361e54d55282c8dc218f
Author: Tim Allen <screwtape@froup.com>
Date:   Sat, 28 May 2016 17:16:18 +1000

[vis-menu] Remove unused keybinding.

I'm guessing at some point slmenu's author wanted to make the various
deletion commands move text to a kill-buffer, and then Insert and
Control-Y could yank from it back into the text field.

That clearly never happened, though, so this is dead code.

Diffstat:
Mvis-menu.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/vis-menu.c b/vis-menu.c @@ -340,10 +340,6 @@ run(void) { if(c!='H') xread(0, &c, 1); /* Remove trailing '~' from stdin */ c=CONTROL('A'); goto switch_top; - case '2': /* Insert */ - xread(0, &c, 1); /* Remove trailing '~' from stdin */ - c=CONTROL('Y'); - goto switch_top; case '3': /* Delete */ xread(0, &c, 1); /* Remove trailing '~' from stdin */ c=CONTROL('D');