aboutsummaryrefslogtreecommitdiff
path: root/vis-operators.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-02-07 23:54:25 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-02-10 19:39:01 +0100
commit66a56c827efcac36e07d6ac34bd05681ab8364e9 (patch)
tree75101a584fff95c1a8f42cc04254de53a312d99c /vis-operators.c
parent528c418427361b480dd8be66eb872b2053963817 (diff)
downloadvis-66a56c827efcac36e07d6ac34bd05681ab8364e9.tar.gz
vis-66a56c827efcac36e07d6ac34bd05681ab8364e9.tar.xz
vis: implement yank register "0
Diffstat (limited to 'vis-operators.c')
-rw-r--r--vis-operators.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-operators.c b/vis-operators.c
index 7901851..d4fdb21 100644
--- a/vis-operators.c
+++ b/vis-operators.c
@@ -25,6 +25,8 @@ static size_t op_change(Vis *vis, Text *txt, OperatorContext *c) {
static size_t op_yank(Vis *vis, Text *txt, OperatorContext *c) {
c->reg->linewise = c->linewise;
register_put(vis, c->reg, txt, &c->range);
+ if (c->reg == &vis->registers[VIS_REG_DEFAULT])
+ register_put(vis, &vis->registers[VIS_REG_ZERO], txt, &c->range);
return c->pos;
}