~exec64/imv-devel

imv: console: update libgrapheme API to version 1 v1 APPLIED

Cem Keylan: 1
 console: update libgrapheme API to version 1

 1 files changed, 2 insertions(+), 2 deletions(-)
#654954 ubuntu.yml success
#654955 freebsd.yml success
#654956 fedora.yml success
#654957 debian.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~exec64/imv-devel/patches/27591/mbox | git am -3
Learn more about email & git

[PATCH imv] console: update libgrapheme API to version 1 Export this patch

---
libgrapheme has recently seen its first release, along with some API
changes. I have updated the functions to match the current API. There
is also a dedicated webpage for the library available[0] along with
some better documentation.

[0]: https://libs.suckless.org/libgrapheme/

 src/console.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/console.c b/src/console.c
index 323383f..9db18e7 100644
--- a/src/console.c
+++ b/src/console.c
@@ -52,7 +52,7 @@ static size_t next_char(char *buffer, size_t position)
  return result;
  #elif defined(IMV_USE_GRAPHEME)
  if (buffer[position] != 0) {
    return position + grapheme_bytelen(buffer + position);
    return position + grapheme_next_character_break(buffer + position, SIZE_MAX);
  } else {
    return position;
  }
@@ -85,7 +85,7 @@ static size_t prev_char(char *buffer, size_t position)
  size_t result = 0;
  size_t step;
  do {
    step = grapheme_bytelen(buffer + result);
    step = grapheme_next_character_break(buffer + result, SIZE_MAX);
    if (result + step >= position)
      break;
    result += step;
-- 
2.34.1
imv/patches: SUCCESS in 4m10s

[console: update libgrapheme API to version 1][0] from [Cem Keylan][1]

[0]: https://lists.sr.ht/~exec64/imv-devel/patches/27591
[1]: mailto:cem@ckyln.com

✓ #654957 SUCCESS imv/patches/debian.yml  https://builds.sr.ht/~exec64/job/654957
✓ #654954 SUCCESS imv/patches/ubuntu.yml  https://builds.sr.ht/~exec64/job/654954
✓ #654955 SUCCESS imv/patches/freebsd.yml https://builds.sr.ht/~exec64/job/654955
✓ #654956 SUCCESS imv/patches/fedora.yml  https://builds.sr.ht/~exec64/job/654956
Thanks! Applied and pushed.