tplumb: character offsets start at 1, not 0 - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f0a4e8bd6cfb318e374e57f34b5676c6890fb1a2
 (DIR) parent 4a8214b1ecfbd64e83491c580dc53941c7285591
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Wed, 31 Aug 2011 09:22:22 -0400
       
       plumb: character offsets start at 1, not 0
       
       x:10:1 is the beginning of line 10
       
       R=rsc
       http://codereview.appspot.com/4960049
       
       Diffstat:
         M plumb/basic                         |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/plumb/basic b/plumb/basic
       t@@ -64,7 +64,7 @@ type is text
        data matches '([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-])'$twocolonaddr'
        arg isfile     $1
        data set       $file
       -attr add       addr=$2-#0+#$3
       +attr add       addr=$2-#1+#$3
        plumb to edit
        plumb client $editor