From 0d9bbb74c6de959ab7c6b93b7a97f9f2e643e8e8 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Fri, 5 Dec 2025 22:36:10 -0700 Subject: replace oversized libutf with smaller version this is taken from one of my other projects. there was no reason for there to be 2x the code tests checking for surrogate characters and non characters were removed. I see no reason why the user shouldn't be allowed to insert those characters in text (they exist in the standard). Also, in the case of non-characters only the first two were being checked and not the other 64. --- vis.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 72f6ec5..b9d6f14 100644 --- a/vis.h +++ b/vis.h @@ -16,7 +16,6 @@ typedef struct Win Win; #include "ui.h" #include "view.h" #include "text-regex.h" -#include "libutf.h" #include "array.h" #include "buffer.h" @@ -1326,7 +1325,7 @@ VIS_EXPORT long vis_keys_codepoint(Vis *vis, const char *keys); * .. note:: Guarantees that ``utf8`` is NUL terminated on success. * @endrst */ -VIS_EXPORT bool vis_keys_utf8(Vis *vis, const char *keys, char utf8[static UTFmax+1]); +VIS_EXPORT bool vis_keys_utf8(Vis *vis, const char *keys, char utf8[4+1]); /** * Process symbolic keys as if they were user originated input. * @param vis The editor instance. -- cgit v1.2.3