aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5f3c11e..9bf8e6c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -818,7 +818,7 @@ static ssize_t selectiontofd(int fd)
if (pos <= lastpos) {
if (write(fd, "\n", 1) != 1)
return pos;
- pbuf += pos + 1;
+ pbuf += len + 1;
}
++pos;
}