diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-23 06:35:40 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-02-23 06:39:05 +0800 |
commit | 06df895e71720b65f98b6b9c579ca5918a12bc04 (patch) | |
tree | 778d31bc4664128a2f21cf7925e918f5dd064a4f /src/nvim/eval.lua | |
parent | 20e4001eeedc80b1f2857fcaca81f7a211a09b40 (diff) | |
download | rneovim-06df895e71720b65f98b6b9c579ca5918a12bc04.tar.gz rneovim-06df895e71720b65f98b6b9c579ca5918a12bc04.tar.bz2 rneovim-06df895e71720b65f98b6b9c579ca5918a12bc04.zip |
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()
https://github.com/vim/vim/commit/421b597470c118871c7081de00dd065e0e000b7e
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r-- | src/nvim/eval.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 231dd1f9bf..9cca9c588a 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -4387,6 +4387,8 @@ M.funcs = { |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> |