<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 10 Aug 2016, at 09:47, Allan Odgaard <<a href="mailto:mailinglist@textmate.org" class="">mailinglist@textmate.org</a>> wrote:</div><div class=""><div class=""><div style="font-family:sans-serif" class="">
<div style="white-space:normal" class=""><p dir="auto" class="">The “line number” does not need to care about most of what I mentioned above, ideally it would reflect when there are carets on multiple lines, but as the variable was introduced before this was a feature, we cannot extend the format without breaking existing stuff and instead a new variable was introduced with exact information (<code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7" class="">TM_SELECTION</code>).</p><p dir="auto" class="">The format of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7" class="">TM_SELECTION</code> is:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7" class=""><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7" class="">selection    = <range> ('&' <range>)*
range        = <pos> | <normal_range> | <column_range>
pos          = <line> (':' <column>)? ('+' <offset>)?
normal_range = <pos> '-' <pos>
column_range = <pos> 'x' <pos>
line         = [1-9][0-9]*
column       = [1-9][0-9]*
offset       = [1-9][0-9]*</code></pre></div></div></div></div></blockquote></div><div class=""><br class=""></div><div class="">Sorry, I was actually thinking of the TM_LINE_INDEX environment variable. But perhaps the answer is the same anyway.</div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">/Jacob Carlborg</div>

</div>
<br class=""></body></html>