summaryrefslogtreecommitdiff
path: root/src/sbuf.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 22:42:47 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-17 22:42:47 +0200
commitc4d3035a80fe8d2c5b3b9791fce2d26fbb147624 (patch)
treefaee087cb04cd1be0cfa0d25b559938add683e24 /src/sbuf.c
parentec10077b9f943212a9c0c634d79ada4f88b0d0c1 (diff)
downloadratpoison-c4d3035a80fe8d2c5b3b9791fce2d26fbb147624.zip
Turn utf8 macros into functions with less ugly names
Diffstat (limited to 'src/sbuf.c')
-rw-r--r--src/sbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbuf.c b/src/sbuf.c
index ceac839..354fc3d 100644
--- a/src/sbuf.c
+++ b/src/sbuf.c
@@ -156,10 +156,10 @@ sbuf_utf8_nconcat (struct sbuf *b, const char *s, int width)
len = nchars = 0;
while (s[len] != '\0' && nchars < width)
{
- if (RP_IS_UTF8_START (s[len]))
+ if (isu8start (s[len]))
do
len++;
- while (RP_IS_UTF8_CONT (s[len]));
+ while (isu8cont (s[len]));
else
len++;
nchars++;