config.section precise matching

This commit is contained in:
Jaromil 2016-06-15 13:04:53 +02:00
parent a9b9d76b0d
commit 716dc32389
1 changed files with 1 additions and 1 deletions

2
zuper
View File

@ -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 }