fix paste in raw hold mode
This commit is contained in:
parent
297cded760
commit
e58459c7b3
2 changed files with 3 additions and 3 deletions
|
|
@ -596,7 +596,7 @@ listenproc(void *arg)
|
||||||
close(afd);
|
close(afd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
proccreate(textproc, (void*)fd, STACK);
|
proccreate(textproc, (void*)(uintptr)fd, STACK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -608,7 +608,7 @@ textproc(void *arg)
|
||||||
char buf[4096], *p, *ep;
|
char buf[4096], *p, *ep;
|
||||||
|
|
||||||
threadsetname("textproc");
|
threadsetname("textproc");
|
||||||
fd = (int)arg;
|
fd = (uintptr)arg;
|
||||||
p = buf;
|
p = buf;
|
||||||
ep = buf+sizeof buf;
|
ep = buf+sizeof buf;
|
||||||
if(w == nil){
|
if(w == nil){
|
||||||
|
|
|
||||||
|
|
@ -803,7 +803,7 @@ wpaste(Window *w)
|
||||||
return;
|
return;
|
||||||
wcut(w);
|
wcut(w);
|
||||||
q0 = w->q0;
|
q0 = w->q0;
|
||||||
if(w->rawing && q0==w->nr){
|
if(w->rawing && !w->holding && q0==w->nr){
|
||||||
waddraw(w, snarf, nsnarf);
|
waddraw(w, snarf, nsnarf);
|
||||||
wsetselect(w, q0, q0);
|
wsetselect(w, q0, q0);
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue