winwatch: put previous label contents in edit buffer for relabling
This commit is contained in:
parent
95609d520e
commit
bf9bada0c2
1 changed files with 2 additions and 2 deletions
|
@ -241,8 +241,8 @@ label(Win w, Mouse m)
|
||||||
char buf[512], fname[128];
|
char buf[512], fname[128];
|
||||||
int n, fd;
|
int n, fd;
|
||||||
|
|
||||||
buf[0] = 0;
|
snprint(buf, sizeof(buf), "%s", w.label);
|
||||||
n = eenter("label?", buf, sizeof(buf), &m);
|
n = eenter(nil, buf, sizeof(buf), &m);
|
||||||
if(n <= 0)
|
if(n <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
sprint(fname, "/dev/wsys/%d/label", w.n);
|
sprint(fname, "/dev/wsys/%d/label", w.n);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue