Permalink
Browse files

• updated to prefer TM_LINE_INDEX

git-svn-id: http://svn.textmate.org/trunk/Bundles/Setext.tmbundle@2431 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent db4f934 commit 41855897ebf592f2be918e2e1c967a4be8fad59b @sorbits sorbits committed Dec 12, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 Commands/Subheading (-).plist
  2. +1 −1 Commands/Title (=).plist
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>head -n $(($TM_LINE_NUMBER -1))|tail -n 1|sed 's/./-/g'|tail -c +"$TM_COLUMN_NUMBER"</string>
+ <string>head -n$((TM_LINE_NUMBER-1))|tail -n1|sed 's/./-/g'|tail -c +$((TM_LINE_INDEX+1))</string>
<key>input</key>
<string>document</string>
<key>name</key>
View
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>head -n $(($TM_LINE_NUMBER -1))|tail -n 1|sed 's/./=/g'|tail -c +"$TM_COLUMN_NUMBER"</string>
+ <string>head -n$((TM_LINE_NUMBER-1))|tail -n1|sed 's/./=/g'|tail -c +$((TM_LINE_INDEX+1))</string>
<key>input</key>
<string>document</string>
<key>name</key>

0 comments on commit 4185589

Please sign in to comment.