mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00
revert: "shada/context: fully remove jumplist duplicates #10898"
This reverts commit8b8ecf44f2
. Fix #21082. (cherry picked from commit6fe9fbdd2f
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
383cddd784
commit
fec5b0f164
@@ -287,9 +287,11 @@ describe('context functions', function()
|
||||
|
||||
local with_jumps = {
|
||||
['jumps'] = eval(([[
|
||||
filter(map(getjumplist()[0], 'filter(
|
||||
{ "f": expand("#".v:val.bufnr.":p"), "l": v:val.lnum },
|
||||
{ k, v -> k != "l" || v != 1 })'), '!empty(v:val.f)')
|
||||
filter(map(add(
|
||||
getjumplist()[0], { 'bufnr': bufnr('%'), 'lnum': getcurpos()[1] }),
|
||||
'filter(
|
||||
{ "f": expand("#".v:val.bufnr.":p"), "l": v:val.lnum },
|
||||
{ k, v -> k != "l" || v != 1 })'), '!empty(v:val.f)')
|
||||
]]):gsub('\n', ''))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user