From: Emil Williams Date: Sat, 28 Sep 2024 21:41:31 +0000 (+0000) Subject: shorten list output X-Git-Tag: v20240930~9 X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=2b22cc6fb13439f50002fd0e85b10e49b0401611;p=emil-bake.git shorten list output --- diff --git a/bake.l b/bake.l index fa0b1f5..88e8fef 100644 --- a/bake.l +++ b/bake.l @@ -41,7 +41,7 @@ MACROS (@BAKE|@FILENAME|@FILE|@NAME|@SHORT|@ARGS|@LINE|@STOP|$@|$*|$+) first_nl = 1; if (yytext[yyleng-1] == '\n') { ++line; } if (!g_select) { ; } - else if (g_select < 0) { BEGIN FOUND; printf("\n%s:%d:s%d: ", g_filename, line, ++nth); } + else if (g_select < 0) { BEGIN FOUND; printf("%s:%d:s%d: ", g_filename, line, ++nth); } else if (!--g_select) { BEGIN FOUND; } }