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 /vis.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 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -316,6 +316,7 @@ Vis *vis_new(Ui *ui, VisEvent *event) { vis->tabwidth = 8; vis->expandtab = false; vis->registers[VIS_REG_BLACKHOLE].type = REGISTER_BLACKHOLE; + vis->registers[VIS_REG_CLIPBOARD].type = REGISTER_CLIPBOARD; action_reset(&vis->action); if (!(vis->search_pattern = text_regex_new())) goto err; @@ -1005,7 +1006,7 @@ void vis_register_set(Vis *vis, enum VisRegister reg) { const char *vis_register_get(Vis *vis, enum VisRegister reg, size_t *len) { if (reg < LENGTH(vis->registers)) - return register_get(&vis->registers[reg], len); + return register_get(vis, &vis->registers[reg], len); *len = 0; return NULL; } |
