tacme: claim input focus earlier - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 258cfab2fe5a816f23723f696c53ad6e61f6b501
(DIR) parent 8423a43814aa8549e9fe2bd1f50ba3eecdf3032c
(HTM) Author: David Jeannot <djeannot24@gmail.com>
Date: Mon, 16 Jan 2012 17:05:39 -0500
acme: claim input focus earlier
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5505091
Diffstat:
M src/cmd/acme/look.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c
t@@ -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
t@@ -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){
t@@ -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