From c9662de55d78baa82dfcac1afab170a0d8e4f163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 30 Jan 2016 20:15:30 +0100 Subject: Implement system clipboard registers "* and "+ Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste. --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 487ce3c..077ed77 100644 --- a/main.c +++ b/main.c @@ -1306,6 +1306,8 @@ static const char *key2register(Vis *vis, const char *keys, enum VisRegister *re return NULL; if (keys[0] >= 'a' && keys[0] <= 'z') *reg = keys[0] - 'a'; + else if (keys[0] == '*' || keys[0] == '+') + *reg = VIS_REG_CLIPBOARD; else if (keys[0] == '_') *reg = VIS_REG_BLACKHOLE; return keys+1; -- cgit v1.2.3