Browse Source

config.section precise matching

Jaromil 3 years ago
parent
commit
716dc32389
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zuper

+ 1 - 1
zuper

@@ -1056,7 +1056,7 @@ config.section_read() {
1056 1056
         org-mode)
1057 1057
             _contents=`awk '
1058 1058
 BEGIN { found=0 }
1059
-/^#\+ '"$_section"'/ { found=1; next }
1059
+/^#\+ '"$_section"$'/ { found=1; next }
1060 1060
 /^#\+/ { if(found==1) exit 0 }
1061 1061
 /^$/ { next }
1062 1062
 { if(found==1) print $0 }