summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraksnapshot-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index ebb7f4b..4f94990 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -310,7 +310,7 @@ sub save_keyword {
my ($removed, $done);
my $new_val = join('', map { "$_\n" } @values);
substInFile {
- if (/^$keyword/) {
+ if (/^$keyword/ || /^#$keyword/ && !$removed) {
undef $_;
$removed++;
}