vim-patch:9.1.0126: Internal error when using upper-case mark in getregion()

Problem:  Internal error when passing mark in another buffer to
          getregion().
Solution: Don't allow marks in another buffer (zeertzjq)

closes: vim/vim#14076

Internal error when passing mark in another buffer to getregion()

421b597470
This commit is contained in:
zeertzjq
2024-02-23 06:35:40 +08:00
parent 20e4001eee
commit 06df895e71
5 changed files with 18 additions and 3 deletions

View File

@@ -3553,6 +3553,8 @@ function vim.fn.getreginfo(regname) end
--- |visual-mode|, an empty list is returned.
--- - If {pos1}, {pos2} or {type} is an invalid string, an empty
--- list is returned.
--- - If {pos1} or {pos2} is a mark in different buffer, an empty
--- list is returned.
---
--- Examples: >
--- :xnoremap <CR>