Skip to content

Commit c1b6d73

Browse files
committed
fix(windows): help_native previewer (closes #1112)
1 parent 5a44f0a commit c1b6d73

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lua/fzf-lua/defaults.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ M.defaults.helptags = {
596596
},
597597
fzf_opts = {
598598
["--no-multi"] = true,
599-
["--delimiter"] = "[ ]",
599+
["--delimiter"] = string.format("[%s]", utils.nbsp),
600600
["--with-nth"] = "..-2",
601601
["--tiebreak"] = "begin",
602602
},

lua/fzf-lua/previewer/builtin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ end
930930

931931
function Previewer.help_tags:parse_entry(entry_str)
932932
local tag = entry_str:match("^[^%s]+")
933-
local vimdoc = entry_str:match("[^%s]+$")
933+
local vimdoc = entry_str:match(string.format("[^%s]+$", utils.nbsp))
934934
return {
935935
htag = tag,
936936
hregex = ([[\V*%s*]]):format(tag:gsub([[\]], [[\\]])),

lua/fzf-lua/previewer/fzf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ end
417417
function Previewer.help_tags:cmdline(o)
418418
o = o or {}
419419
local act = shell.raw_preview_action_cmd(function(items)
420-
local vimdoc = items[1]:match("[^%s]+$")
420+
local vimdoc = items[1]:match(string.format("[^%s]+$", utils.nbsp))
421421
local tag = items[1]:match("^[^%s]+")
422422
local ext = path.extension(vimdoc)
423423
local cmd = self.cmd:format(libuv.shellescape(vimdoc))

lua/fzf-lua/providers/helptags.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ local fzf_fn = function(cb)
5252
end)()
5353

5454
local add_tag = function(t, fzf_cb, co)
55-
local tag = string.format("%-80s %s %s", hl(t.tag), t.filename, t.filepath)
55+
local tag = string.format("%-80s %s%s%s", hl(t.tag), t.filename, utils.nbsp, t.filepath)
5656
fzf_cb(tag, function()
5757
coroutine.resume(co)
5858
end)

0 commit comments

Comments
 (0)