Skip to content

Commit 868da79

Browse files
committed
fix(fzf-lua): Opening blocks+backlinks hang prompt
1 parent 605a0df commit 868da79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/neorg/modules/external/roam/module.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@ module.public = {
607607
actions = {
608608
["default"] = {
609609
function(selected, _)
610-
vim.cmd("new " .. text_string_matches_dict[selected[1]]["file"])
610+
vim.cmd("q")
611+
vim.cmd("edit " .. text_string_matches_dict[selected[1]]["file"])
611612
vim.cmd(":" .. text_string_matches_dict[selected[1]]["line"])
612613
end,
613614
},
@@ -917,7 +918,8 @@ module.public = {
917918
actions = {
918919
["default"] = {
919920
function(selected, _)
920-
vim.cmd("new " .. backlink_text_matches_dict[selected[1]]["file"])
921+
vim.cmd("q")
922+
vim.cmd("edit " .. backlink_text_matches_dict[selected[1]]["file"])
921923
vim.cmd(":" .. backlink_text_matches_dict[selected[1]]["line"])
922924
end,
923925
},

0 commit comments

Comments
 (0)