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.agetc = plumbgetc;
|
||||
}
|
||||
drawtopwindow();
|
||||
openfile(nil, &e);
|
||||
free(e.name);
|
||||
free(e.u.at);
|
||||
drawtopwindow();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -270,6 +270,7 @@ plumbshow(Plumbmsg *m)
|
|||
Runestr rs;
|
||||
char *name, *p, namebuf[16];
|
||||
|
||||
drawtopwindow();
|
||||
w = makenewwindow(nil);
|
||||
name = plumblookup(m->attr, "filename");
|
||||
if(name == nil){
|
||||
|
|
@ -297,7 +298,6 @@ plumbshow(Plumbmsg *m)
|
|||
winsettag(w);
|
||||
textscrdraw(&w->body);
|
||||
textsetselect(&w->tag, w->tag.file->b.nc, w->tag.file->b.nc);
|
||||
drawtopwindow();
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue