acme: claim input focus earlier
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5505091
This commit is contained in:
parent
8423a43814
commit
258cfab2fe
1 changed files with 2 additions and 2 deletions
|
|
@ -255,10 +255,10 @@ plumblook(Plumbmsg *m)
|
||||||
e.u.ar = bytetorune(addr, &e.a1);
|
e.u.ar = bytetorune(addr, &e.a1);
|
||||||
e.agetc = plumbgetc;
|
e.agetc = plumbgetc;
|
||||||
}
|
}
|
||||||
|
drawtopwindow();
|
||||||
openfile(nil, &e);
|
openfile(nil, &e);
|
||||||
free(e.name);
|
free(e.name);
|
||||||
free(e.u.at);
|
free(e.u.at);
|
||||||
drawtopwindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -270,6 +270,7 @@ plumbshow(Plumbmsg *m)
|
||||||
Runestr rs;
|
Runestr rs;
|
||||||
char *name, *p, namebuf[16];
|
char *name, *p, namebuf[16];
|
||||||
|
|
||||||
|
drawtopwindow();
|
||||||
w = makenewwindow(nil);
|
w = makenewwindow(nil);
|
||||||
name = plumblookup(m->attr, "filename");
|
name = plumblookup(m->attr, "filename");
|
||||||
if(name == nil){
|
if(name == nil){
|
||||||
|
|
@ -297,7 +298,6 @@ plumbshow(Plumbmsg *m)
|
||||||
winsettag(w);
|
winsettag(w);
|
||||||
textscrdraw(&w->body);
|
textscrdraw(&w->body);
|
||||||
textsetselect(&w->tag, w->tag.file->b.nc, w->tag.file->b.nc);
|
textsetselect(&w->tag, w->tag.file->b.nc, w->tag.file->b.nc);
|
||||||
drawtopwindow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue