aboutsummaryrefslogtreecommitdiff
path: root/plumb
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2011-08-31 09:22:22 -0400
committerRuss Cox <rsc@swtch.com>2011-08-31 09:22:22 -0400
commitf0a4e8bd6cfb318e374e57f34b5676c6890fb1a2 (patch)
tree41070223d6188130b6b63a0c8a08993e35a8cd39 /plumb
parent4a8214b1ecfbd64e83491c580dc53941c7285591 (diff)
downloadplan9port-f0a4e8bd6cfb318e374e57f34b5676c6890fb1a2.tar.gz
plan9port-f0a4e8bd6cfb318e374e57f34b5676c6890fb1a2.tar.bz2
plan9port-f0a4e8bd6cfb318e374e57f34b5676c6890fb1a2.zip
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 (limited to 'plumb')
-rw-r--r--plumb/basic2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumb/basic b/plumb/basic
index d40f6a4b..5ab07ec4 100644
--- a/plumb/basic
+++ b/plumb/basic
@@ -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