URI: 
       tfix doubleclick - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 4999080d5b0c41a3aab78414a0329154441d1dce
   DIR parent 276bf4edf1829a03198b9b35152af35eacf51061
  HTML Author: rsc <devnull@localhost>
       Date:   Fri, 11 Feb 2005 19:44:27 +0000
       
       fix doubleclick
       
       Diffstat:
         M src/cmd/9term/9term.c               |      14 +++++++++++---
       
       1 file changed, 11 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
       t@@ -304,6 +304,14 @@ threadmain(int argc, char *argv[])
                loop();
        }
        
       +int
       +isexpand(Rune r)
       +{
       +        return r=='_' || ('0' <= r && r <= '9') 
       +                || ('a' <= r && r <= 'z')
       +                || ('A' <= r && r <= 'Z');
       +}
       +
        void
        hangupnote(void *a, char *msg)
        {
       t@@ -992,7 +1000,7 @@ bswidth(Rune c, uint start, int eatnl)
                                break; 
                        }
                        if(c == 0x17){
       -                        eq = isalnum(r);
       +                        eq = isexpand(r);
                                if(eq && skipping)        /* found one; stop skipping */
                                        skipping = 0;
                                else if(!eq && !skipping)
       t@@ -1600,10 +1608,10 @@ doubleclick(uint *q0, uint *q1)
                        }
                }
                /* try filling out word to right */
       -        while(*q1<t.nr && isalnum(t.r[*q1]))
       +        while(*q1<t.nr && isexpand(t.r[*q1]))
                        (*q1)++;
                /* try filling out word to left */
       -        while(*q0>0 && isalnum(t.r[*q0-1]))
       +        while(*q0>0 && isexpand(t.r[*q0-1]))
                        (*q0)--;
        }