Skip to content

Commit 524f7e6

Browse files
committed
doc: fix awkward wording in the toggle_trash action
1 parent 3d4585e commit 524f7e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/oil/actions.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ M.change_sort = {
267267
}
268268

269269
M.toggle_trash = {
270-
desc = "Jump back and forth the trash for the current directory",
270+
desc = "Jump to and from the trash for the current directory",
271271
callback = function()
272272
local fs = require("oil.fs")
273273
local bufname = vim.api.nvim_buf_get_name(0)
@@ -278,8 +278,8 @@ M.toggle_trash = {
278278
url = "oil-trash://" .. path
279279
elseif scheme == "oil-trash://" then
280280
url = "oil://" .. path
281-
-- The non-linux trash implementations don't support per-directory trash, so try to jump back
282-
-- to the original buffer by looking at the alternat buffer
281+
-- The non-linux trash implementations don't support per-directory trash,
282+
-- so jump back to the stored source buffer.
283283
if not fs.is_linux then
284284
local src_bufnr = vim.b.oil_trash_toggle_src
285285
if src_bufnr and vim.api.nvim_buf_is_valid(src_bufnr) then

0 commit comments

Comments
 (0)