Skip to content

Commit 904f95c

Browse files
authored
fix: prompt uses first character of response - allow "yy" (#2357)
1 parent 0042886 commit 904f95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/lib.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function M.prompt(prompt_input, prompt_select, items_short, items_long, callback
148148
end)
149149
else
150150
vim.ui.input({ prompt = prompt_input, default = items_short[1] or "" }, function(item_short)
151-
callback(item_short)
151+
callback(item_short and item_short:sub(1, 1) or nil)
152152
end)
153153
end
154154
end

0 commit comments

Comments
 (0)