ref: 466ac5884f6ad22815d66c14f418186824b4a217
parent: 045dbeed220f68a88253989b5c9583b5ee9e56fb
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Feb 15 17:44:04 EST 2020
plan9: load/save: different prompt depending on what is going to happen
--- a/plan9.c
+++ b/plan9.c
@@ -744,7 +744,7 @@
n = menuhit(3, mctl, &menu3, nil);
if (n == Menu3load || n == Menu3save) {
strncpy(tmp, filename, sizeof(tmp));
- if (enter("file path:", tmp, sizeof(tmp), mctl, &kctl, nil) > 0) {
+ if (enter(n == Menu3load ? "load from:" : "save to:", tmp, sizeof(tmp), mctl, &kctl, nil) > 0) {
if (n == Menu3load && fieldload(tmp) == 0) {
w = field.width;
h = field.height;