CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 10:38:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/vim/vim.git
etag: W/"227501da7a7ba76c2823cfa79ceeeaae"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=nv285wZlheBstDpp2AVIn%2B8BP4OV%2B0n11gm0pXaPJkNAmzmrzcKdBfRNaMApkKLY3MohU41rCn%2BFESaglctwlZ25kin0zRh%2BlQ1tQKG%2FYLHuHMZFTjqrkbde7SyBzbjbB%2FJNL5gepm%2BxYBEvGY5Ik6ttpib%2B6gbsVZrvidsWg%2B0BlOV%2BnEHPFWsLh52L36i7IPInz1JoUKFN%2BDmFbuf%2BGMOLOii8K%2FNzf6jVljTzSpYlSd6BmC0cWkUFNpz5prbev7P1f%2BOzk9pBH7I%2B6PORdA%3D%3D--qqEmEZjt5%2F14E%2Bxx--WtADC%2ByO0XH%2FqYukBHjCHg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.120458176.1753958311; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 10:38:31 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 10:38:31 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8A26:FA5FC:8357E3:9E4691:688B47A7
patch 9.1.0142: getregion() can be improved · vim/vim@19b7188 · GitHub
Copy file name to clipboardExpand all lines: src/testdir/test_vim9_builtin.vim
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit 19b7188
patch 9.1.0142: getregion() can be improved
Problem: getregion() can be improved (after v9.1.120)
Solution: change getregion() implementation to use pos as lists and
one optional {opt} dictionary (Shougo Matsushita)
Note: The following is a breaking change!
Currently, the getregion() function (included as of patch v9.1.120) takes
3 arguments: the first 2 arguments are strings, describing a position,
arg3 is the type string.
However, that is slightly inflexible, there is no way to specify
additional arguments. So let's instead change the function signature to:
getregion(pos1, pos2 [, {Dict}]) where both pos1 and pos2 are lists.
This is slightly cleaner, and gives us the flexibility to specify
additional arguments as key/value pairs to the optional Dict arg.
Now it supports the "type" key to specify the selection type
(characterwise, blockwise or linewise) and now in addition one can also
define the selection type, independently of what the 'selection' option
actually is.
Technically, this is a breaking change, but since the getregion()
Vimscript function is still quite new, this should be fine.
closes: #14090
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent d0d4adb commit 19b7188Copy full SHA for 19b7188
File tree
Expand file treeCollapse file tree
5 files changed
+213
-103
lines changedFilter options
- runtime/doc
- src
- testdir
Expand file treeCollapse file tree
5 files changed
+213
-103
lines changed+25-17Lines changed: 25 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
266 |
| - | |
| 266 | + | |
267 | 267 |
| |
268 | 268 |
| |
269 | 269 |
| |
| |||
4271 | 4271 |
| |
4272 | 4272 |
| |
4273 | 4273 |
| |
4274 |
| - | |
4275 |
| - | |
4276 |
| - | |
4277 |
| - | |
4278 |
| - | |
4279 |
| - | |
4280 |
| - | |
4281 |
| - | |
| 4274 | + | |
| 4275 | + | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
4282 | 4293 |
| |
4283 | 4294 |
| |
4284 | 4295 |
| |
| |||
4296 | 4307 |
| |
4297 | 4308 |
| |
4298 | 4309 |
| |
4299 |
| - | |
4300 |
| - | |
4301 |
| - | |
4302 |
| - | |
4303 |
| - | |
| 4310 | + | |
4304 | 4311 |
| |
4305 | 4312 |
| |
4306 | 4313 |
| |
4307 | 4314 |
| |
4308 |
| - | |
| 4315 | + | |
| 4316 | + | |
4309 | 4317 |
| |
4310 | 4318 |
| |
4311 |
| - | |
| 4319 | + | |
4312 | 4320 |
| |
4313 | 4321 |
| |
4314 | 4322 |
| |
|
+32-25Lines changed: 32 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1151 | 1151 |
| |
1152 | 1152 |
| |
1153 | 1153 |
| |
| 1154 | + | |
1154 | 1155 |
| |
1155 | 1156 |
| |
1156 | 1157 |
| |
| |||
2132 | 2133 |
| |
2133 | 2134 |
| |
2134 | 2135 |
| |
2135 |
| - | |
| 2136 | + | |
2136 | 2137 |
| |
2137 | 2138 |
| |
2138 | 2139 |
| |
| |||
5491 | 5492 |
| |
5492 | 5493 |
| |
5493 | 5494 |
| |
5494 |
| - | |
5495 |
| - | |
| 5495 | + | |
| 5496 | + | |
5496 | 5497 |
| |
5497 | 5498 |
| |
5498 | 5499 |
| |
5499 |
| - | |
| 5500 | + | |
5500 | 5501 |
| |
5501 | 5502 |
| |
5502 | 5503 |
| |
5503 | 5504 |
| |
5504 |
| - | |
5505 |
| - | |
5506 |
| - | |
| 5505 | + | |
| 5506 | + | |
| 5507 | + | |
5507 | 5508 |
| |
5508 | 5509 |
| |
5509 |
| - | |
5510 |
| - | |
5511 |
| - | |
| 5510 | + | |
| 5511 | + | |
5512 | 5512 |
| |
5513 |
| - | |
5514 | 5513 |
| |
5515 |
| - | |
5516 |
| - | |
| 5514 | + | |
| 5515 | + | |
5517 | 5516 |
| |
5518 |
| - | |
5519 | 5517 |
| |
5520 |
| - | |
5521 |
| - | |
5522 |
| - | |
5523 |
| - | |
5524 |
| - | |
5525 |
| - | |
5526 |
| - | |
5527 |
| - | |
5528 |
| - | |
| 5518 | + | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
| 5529 | + | |
| 5530 | + | |
| 5531 | + | |
5529 | 5532 |
| |
5530 | 5533 |
| |
5531 | 5534 |
| |
| |||
5539 | 5542 |
| |
5540 | 5543 |
| |
5541 | 5544 |
| |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
5542 | 5549 |
| |
5543 | 5550 |
| |
5544 | 5551 |
| |
| |||
5552 | 5559 |
| |
5553 | 5560 |
| |
5554 | 5561 |
| |
5555 |
| - | |
| 5562 | + | |
5556 | 5563 |
| |
5557 | 5564 |
| |
5558 | 5565 |
| |
| |||
5590 | 5597 |
| |
5591 | 5598 |
| |
5592 | 5599 |
| |
5593 |
| - | |
| 5600 | + | |
5594 | 5601 |
| |
5595 | 5602 |
| |
5596 | 5603 |
| |
|
src/testdir/test_vim9_builtin.vim
Copy file name to clipboardExpand all lines: src/testdir/test_vim9_builtin.vim+4-5Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5198 | 5198 |
| |
5199 | 5199 |
| |
5200 | 5200 |
| |
5201 |
| - | |
| 5201 | + | |
5202 | 5202 |
| |
5203 |
| - | |
5204 |
| - | |
5205 |
| - | |
5206 |
| - | |
| 5203 | + | |
| 5204 | + | |
| 5205 | + | |
5207 | 5206 |
| |
5208 | 5207 |
| |
5209 | 5208 |
|
You can’t perform that action at this time.
0 commit comments