ref: a8d4fea6ef2b46865bfbaa416f0bf5db972d4374
parent: cd3d99b944f1be8b5eae83d9347557f768fed40a
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Feb 23 10:43:30 EST 2020
plan9: fix saving
--- a/plan9.c
+++ b/plan9.c
@@ -1298,7 +1298,7 @@
snprint(filename, sizeof(filename), "%s", tmp);
}
} else if (n == Menu3save) {
- if ((tmp[0] != 0 || enter("save to:", tmp, sizeof(tmp), mctl, &kctl, nil) > 0) || fieldsave(tmp) == 0)
+ if ((tmp[0] != 0 || enter("save to:", tmp, sizeof(tmp), mctl, &kctl, nil) > 0) && fieldsave(tmp) == 0)
snprint(filename, sizeof(filename), "%s", tmp);
} else if (n == Menu3dotstyle) {
dotstyle = ++dotstyle % Numstyles;