From 716dc32389e270438f66f25d2143cbf7091b7b5c Mon Sep 17 00:00:00 2001 From: Jaromil Date: Wed, 15 Jun 2016 13:04:53 +0200 Subject: [PATCH] config.section precise matching --- zuper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuper b/zuper index d9ad475..442ceef 100755 --- a/zuper +++ b/zuper @@ -1056,7 +1056,7 @@ config.section_read() { org-mode) _contents=`awk ' BEGIN { found=0 } -/^#\+ '"$_section"'/ { found=1; next } +/^#\+ '"$_section"$'/ { found=1; next } /^#\+/ { if(found==1) exit 0 } /^$/ { next } { if(found==1) print $0 }