diff options
author | rsc <devnull@localhost> | 2005-07-14 00:20:41 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-14 00:20:41 +0000 |
commit | 6cc5b304facd0beb15df33baf5f1dacfcdb4bba1 (patch) | |
tree | 7fa965aa720ea5ed37c5cfd1181d91677bcdd2d6 /src | |
parent | fcb69ec5d8b66cfc0b1a2127555fb1c34b2959e8 (diff) | |
download | plan9port-6cc5b304facd0beb15df33baf5f1dacfcdb4bba1.tar.gz plan9port-6cc5b304facd0beb15df33baf5f1dacfcdb4bba1.tar.bz2 plan9port-6cc5b304facd0beb15df33baf5f1dacfcdb4bba1.zip |
hold mode in raw mode
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9term/9term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 78d52ab1..b6658b2f 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -939,7 +939,7 @@ key(Rune r) return; } - if(rawon() && t.q0 == t.nr){ + if(!holdon && rawon() && t.q0 == t.nr){ addraw(&r, 1); consread(); return; @@ -1026,7 +1026,7 @@ consready(void) return 0; if(rawon()) - return t.nraw != 0; + return t.nraw != 0 || t.qh < t.nr; /* look to see if there is a complete line */ for(i=t.qh; i<t.nr; i++){ @@ -1372,7 +1372,7 @@ paste(Rune *r, int n, int advance) { Rune *rbuf; - if(rawon() && t.q0==t.nr){ + if(!holdon && rawon() && t.q0==t.nr){ addraw(r, n); consread(); return; |