From 692d62ea67ba6cb72ae7915e88ef88c2234dda2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 30 Mar 2021 10:16:51 +0200 Subject: [PATCH] :art: Improve dym --- src/parse/did_you_mean.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse/did_you_mean.c b/src/parse/did_you_mean.c index 2d724d6b..e2d4e784 100644 --- a/src/parse/did_you_mean.c +++ b/src/parse/did_you_mean.c @@ -41,7 +41,7 @@ ANN static void ressembles(const Vector v, const Nspc nspc, const char* name, bo if(wagner_fisher(name, value->name)) { if(!*done) { *done = true; - gw_err("{-/}did you mean{0}:"); + gw_err("{-/}did you mean{0}:\n"); } if(!vflag(value, vflag_builtin)) gwerr_secondary("declared here", value->from->filename, value->from->loc); @@ -51,7 +51,6 @@ ANN static void ressembles(const Vector v, const Nspc nspc, const char* name, bo #define MAX_NAME_LEN 16 #define CHECK_LEN(name) if(strlen(name) > MAX_NAME_LEN) return; -#define DYM_FMT "`{/+}%s{0}`?\n" #undef did_you_mean_nspc ANN void did_you_mean_nspc(Nspc nspc, const char* name) { -- 2.43.0