disable chording
This commit is contained in:
parent
f76e039c43
commit
6bc22c7d87
1 changed files with 5 additions and 3 deletions
|
|
@ -26,6 +26,8 @@ int maxtab = 8;
|
||||||
int chord;
|
int chord;
|
||||||
int autoindent;
|
int autoindent;
|
||||||
|
|
||||||
|
#define chording 0 /* code here for reference but it causes deadlocks */
|
||||||
|
|
||||||
void
|
void
|
||||||
threadmain(int argc, char *argv[])
|
threadmain(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
@ -100,9 +102,9 @@ dup(2, 1);
|
||||||
scr = which && ptinrect(mousep->xy, which->scroll);
|
scr = which && ptinrect(mousep->xy, which->scroll);
|
||||||
if(mousep->buttons)
|
if(mousep->buttons)
|
||||||
flushtyping(1);
|
flushtyping(1);
|
||||||
if(chord==1 && !mousep->buttons)
|
if(chording && chord==1 && !mousep->buttons)
|
||||||
chord = 0;
|
chord = 0;
|
||||||
if(chord)
|
if(chording && chord)
|
||||||
chord |= mousep->buttons;
|
chord |= mousep->buttons;
|
||||||
else if(mousep->buttons&1){
|
else if(mousep->buttons&1){
|
||||||
if(nwhich){
|
if(nwhich){
|
||||||
|
|
@ -134,7 +136,7 @@ dup(2, 1);
|
||||||
}
|
}
|
||||||
mouseunblock();
|
mouseunblock();
|
||||||
}
|
}
|
||||||
if(chord){
|
if(chording && chord){
|
||||||
t = (Text*)which->user1;
|
t = (Text*)which->user1;
|
||||||
if(!t->lock && !hostlock){
|
if(!t->lock && !hostlock){
|
||||||
w = which-t->l;
|
w = which-t->l;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue