From 6c60778bd3bc3d4b9fda32c9c6d9c412463df31a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 23 Oct 2023 15:53:21 +0300 Subject: [s2] Fixed premature ending for word count --- csg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csg b/csg index f8ecd33..61b010f 100755 --- a/csg +++ b/csg @@ -238,7 +238,7 @@ $($CSG_AWK -v titlef="$TITLEF" ' stopdesc = 1 } } - startedGathering && /^$/ { exit } + stopdesc == 0 && startedGathering == 1 && /^$/ { stopdesc = 1 } { words += NF } END { print title ORS desc ORS words }' "$file") EOF -- cgit v1.3.1-23-gd82d