aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/vimfn.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-15 18:53:59 +0800
committerGitHub <noreply@github.com>2024-10-15 18:53:59 +0800
commit84623dbe93777c0a8e7ddf57470ddeb2ea738069 (patch)
tree0856b7556667a3efc5c7ec6219a9a5b3f47d487d /runtime/lua/vim/_meta/vimfn.lua
parente0a5c3bb581752569df4490b48cb54e7c1ab0613 (diff)
downloadrneovim-84623dbe93777c0a8e7ddf57470ddeb2ea738069.tar.gz
rneovim-84623dbe93777c0a8e7ddf57470ddeb2ea738069.tar.bz2
rneovim-84623dbe93777c0a8e7ddf57470ddeb2ea738069.zip
vim-patch:9.1.0785: cannot preserve error position when setting quickfix list (#30820)
Problem: cannot preserve error position when setting quickfix lists Solution: Add the 'u' action for setqflist()/setloclist() and try to keep the closes target position (Jeremy Fleischman) fixes: vim/vim#15839 closes: vim/vim#15841 https://github.com/vim/vim/commit/27fbf6e5e8bee5c6b61819a5e82a0b50b265f0b0 Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index 81e7070ac0..f588162112 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -8229,6 +8229,8 @@ function vim.fn.setpos(expr, list) end
--- clear the list: >vim
--- call setqflist([], 'r')
--- <
+--- 'u' Like 'r', but tries to preserve the current selection
+--- in the quickfix list.
--- 'f' All the quickfix lists in the quickfix stack are
--- freed.
---