vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 4d9db358f2e03dc4ea7b8cdefb51d08c459a85c3 parent 6ee2f7900e73666503c8d4bd9cd49a5467e357b9 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 23 Nov 2015 19:15:16 +0100 vis: fix compiler warnings related to `ga` implementation Diffstat:
| M | main.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -1,6 +1,7 @@ #include <signal.h> #include <limits.h> #include <string.h> +#include <wchar.h> #include <errno.h> #include "ui-curses.h" @@ -1571,7 +1572,7 @@ static const char *unicode_info(Vis *vis, const char *keys, const Arg *arg) { mbtowc(&wc, data_cur, len); int width = wcwidth(wc); info_cur += snprintf(info_cur, sizeof(info) - (info_cur - info) - 1, - "<%s%.*s> U+%04x ", width == 0 ? " " : "", len, data_cur, wc); + "<%s%.*s> U+%04x ", width == 0 ? " " : "", (int)len, data_cur, wc); data_cur += len; } vis_info_show(vis, "%s", info);