plumb: character offsets start at 1, not 0

x:10:1 is the beginning of line 10

R=rsc
http://codereview.appspot.com/4960049
This commit is contained in:
Russ Cox 2011-08-31 09:22:22 -04:00
parent 4a8214b1ec
commit f0a4e8bd6c

View file

@ -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