aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-30 18:00:26 +0000
committerrsc <devnull@localhost>2005-01-30 18:00:26 +0000
commit6bc22c7d87df65a5fc380cbaf67c5e5a6456a2de (patch)
tree2136add337cadc0a6446808843b0c0ba0785916c /src/cmd/samterm
parentf76e039c430f14f027e780588b577439c22a2cff (diff)
downloadplan9port-6bc22c7d87df65a5fc380cbaf67c5e5a6456a2de.tar.gz
plan9port-6bc22c7d87df65a5fc380cbaf67c5e5a6456a2de.tar.bz2
plan9port-6bc22c7d87df65a5fc380cbaf67c5e5a6456a2de.zip
disable chording
Diffstat (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmd/samterm/main.c b/src/cmd/samterm/main.c
index ed75af79..30cdab17 100644
--- a/src/cmd/samterm/main.c
+++ b/src/cmd/samterm/main.c
@@ -26,6 +26,8 @@ int maxtab = 8;
int chord;
int autoindent;
+#define chording 0 /* code here for reference but it causes deadlocks */
+
void
threadmain(int argc, char *argv[])
{
@@ -100,9 +102,9 @@ dup(2, 1);
scr = which && ptinrect(mousep->xy, which->scroll);
if(mousep->buttons)
flushtyping(1);
- if(chord==1 && !mousep->buttons)
+ if(chording && chord==1 && !mousep->buttons)
chord = 0;
- if(chord)
+ if(chording && chord)
chord |= mousep->buttons;
else if(mousep->buttons&1){
if(nwhich){
@@ -134,7 +136,7 @@ dup(2, 1);
}
mouseunblock();
}
- if(chord){
+ if(chording && chord){
t = (Text*)which->user1;
if(!t->lock && !hostlock){
w = which-t->l;