aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/9term/9term.c4
-rw-r--r--src/cmd/9term/wind.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index c2bd7766..60479ed6 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -596,7 +596,7 @@ listenproc(void *arg)
close(afd);
return;
}
- proccreate(textproc, (void*)fd, STACK);
+ proccreate(textproc, (void*)(uintptr)fd, STACK);
}
}
@@ -608,7 +608,7 @@ textproc(void *arg)
char buf[4096], *p, *ep;
threadsetname("textproc");
- fd = (int)arg;
+ fd = (uintptr)arg;
p = buf;
ep = buf+sizeof buf;
if(w == nil){
diff --git a/src/cmd/9term/wind.c b/src/cmd/9term/wind.c
index fae6756a..fbb329e1 100644
--- a/src/cmd/9term/wind.c
+++ b/src/cmd/9term/wind.c
@@ -803,7 +803,7 @@ wpaste(Window *w)
return;
wcut(w);
q0 = w->q0;
- if(w->rawing && q0==w->nr){
+ if(w->rawing && !w->holding && q0==w->nr){
waddraw(w, snarf, nsnarf);
wsetselect(w, q0, q0);
}else{