summaryrefslogtreecommitdiff
path: root/src/bin/sb.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-27 20:59:04 +0100
committerBoris Faure <billiob@gmail.com>2019-02-06 23:19:29 +0100
commit5303f9eb286e28446e422447e9e234010fb611f0 (patch)
tree69e84a93f76e2fff85380e416ff9ce78c4865549 /src/bin/sb.c
parent891168a9a7d96c605211f091635f0c5969ec91c5 (diff)
termio: use ty_sb to deal with selections
Diffstat (limited to 'src/bin/sb.c')
-rw-r--r--src/bin/sb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/sb.c b/src/bin/sb.c
index 939c2b3..b2bffa5 100644
--- a/src/bin/sb.c
+++ b/src/bin/sb.c
@@ -79,6 +79,9 @@ ty_sb_steal_buf(struct ty_sb *sb)
79 size_t i; 79 size_t i;
80 char *buf; 80 char *buf;
81 81
82 if (!sb->len)
83 return NULL;
84
82 if (sb->gap != 0) 85 if (sb->gap != 0)
83 { 86 {
84 sb->buf -= sb->gap; 87 sb->buf -= sb->gap;