]> git.xolatile.top Git - emil-bake.git/commitdiff
shorten list output
authorEmil Williams <emilemilemil@cock.li>
Sat, 28 Sep 2024 21:41:31 +0000 (21:41 +0000)
committerEmil Williams <emilemilemil@cock.li>
Sat, 28 Sep 2024 21:41:31 +0000 (21:41 +0000)
bake.l

diff --git a/bake.l b/bake.l
index fa0b1f54f44d41e551ea7e566f338f3c13adb6ce..88e8fef3ebf0af372624e09b246b78dd5c2b4ff2 100644 (file)
--- 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;                                                   }
 }