aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.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 /src/nvim/eval.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 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index a440450b9d..f0746e6159 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -9896,6 +9896,8 @@ M.funcs = {
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.