Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc245ef

Browse files
committed
fix(picker.undo): set initial target to the current undo entry. See#2434
1 parent3038dac commitdc245ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎lua/snacks/picker/source/vim.lua‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,11 @@ function M.undo(opts, ctx)
489489
end)
490490
end)
491491
fori=#items,1,-1do
492-
cb(items[i])
492+
localitem=items[i]
493+
cb(item)
494+
ifitem.currentthen
495+
ctx.picker.list:set_target(#items-i+1)
496+
end
493497
end
494498

495499
while#items>0do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp