diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-30 20:15:30 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-30 23:12:54 +0100 |
| commit | c9662de55d78baa82dfcac1afab170a0d8e4f163 (patch) | |
| tree | 86e9efd6b1fc229cf70a30fbd598715a673b8bb8 /main.c | |
| parent | d94bb93f10365a39d90cc0d4d4b151fc797767df (diff) | |
| download | vis-c9662de55d78baa82dfcac1afab170a0d8e4f163.tar.gz vis-c9662de55d78baa82dfcac1afab170a0d8e4f163.tar.xz | |
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.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |
