mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
hold mode in raw mode
This commit is contained in:
parent
fcb69ec5d8
commit
6cc5b304fa
1 changed files with 3 additions and 3 deletions
|
@ -939,7 +939,7 @@ key(Rune r)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rawon() && t.q0 == t.nr){
|
if(!holdon && rawon() && t.q0 == t.nr){
|
||||||
addraw(&r, 1);
|
addraw(&r, 1);
|
||||||
consread();
|
consread();
|
||||||
return;
|
return;
|
||||||
|
@ -1026,7 +1026,7 @@ consready(void)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(rawon())
|
if(rawon())
|
||||||
return t.nraw != 0;
|
return t.nraw != 0 || t.qh < t.nr;
|
||||||
|
|
||||||
/* look to see if there is a complete line */
|
/* look to see if there is a complete line */
|
||||||
for(i=t.qh; i<t.nr; i++){
|
for(i=t.qh; i<t.nr; i++){
|
||||||
|
@ -1372,7 +1372,7 @@ paste(Rune *r, int n, int advance)
|
||||||
{
|
{
|
||||||
Rune *rbuf;
|
Rune *rbuf;
|
||||||
|
|
||||||
if(rawon() && t.q0==t.nr){
|
if(!holdon && rawon() && t.q0==t.nr){
|
||||||
addraw(r, n);
|
addraw(r, n);
|
||||||
consread();
|
consread();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue