|
3 | 3 | helpname: 'builtin'
|
4 | 4 | ---
|
5 | 5 | <div id='vimCodeElement'>
|
6 |
| -<a class="Constant" href="builtin.html" name="builtin.txt">builtin.txt</a> For <span class="Identifier">Vim version 9.1.</span> Last change: 2024 May 18<br> |
| 6 | +<a class="Constant" href="builtin.html" name="builtin.txt">builtin.txt</a> For <span class="Identifier">Vim version 9.1.</span> Last change: 2024 May 20<br> |
7 | 7 | <br>
|
8 | 8 | <br>
|
9 | 9 | <span class="Identifier">VIM REFERENCE MANUAL by Bram Moolenaar</span><br>
|
|
4346 | 4346 | "bufnum" is the buffer number.<br>
|
4347 | 4347 | "lnum" and "col" are the position in the buffer. The first<br>
|
4348 | 4348 | column is 1.<br>
|
4349 |
| - The "off" number is zero, unless <a class="Type" href="options.html#'virtualedit'">'virtualedit'</a> is used. Then<br> |
4350 |
| - it is the offset in screen columns from the start of the<br> |
4351 |
| - character. E.g., a position within a <span class="Special"><Tab></span> or after the last<br> |
4352 |
| - character.<br> |
| 4349 | + If the "off" number of a starting position is non-zero, it is<br> |
| 4350 | + the offset in screen columns from the start of the character.<br> |
| 4351 | + E.g., a position within a <span class="Special"><Tab></span> or after the last character.<br> |
| 4352 | + If the "off" number of an ending position is non-zero, it is<br> |
| 4353 | + the character's number of cells included in the selection,<br> |
| 4354 | + otherwise the whole character is included.<br> |
4353 | 4355 | <br>
|
4354 | 4356 | Can also be used as a <a class="Identifier" href="eval.html#method">method</a>:<br>
|
4355 | 4357 | <div class="helpExample"> getpos('.')->getregionpos(getpos("'a"))</div>
|
|
0 commit comments